gsmopen: zeroize sms_message store in case we receive an empty message

This commit is contained in:
Giovanni Maruzzelli 2012-04-17 11:27:54 +02:00
parent 113c00aa5b
commit 98b51e5681
1 changed files with 1 additions and 1 deletions

View File

@ -1110,7 +1110,7 @@ read:
memset(at_command, 0, sizeof(at_command));
sprintf(at_command, "AT+CMGR=%d", tech_pvt->unread_sms_msg_id);
//memset(tech_pvt->sms_message, 0, sizeof(tech_pvt->sms_message));
memset(tech_pvt->sms_message, 0, sizeof(tech_pvt->sms_message));
tech_pvt->reading_sms_msg = 1;
res = gsmopen_serial_write_AT_ack(tech_pvt, at_command);