FreeCalypso > hg > fc-selenite
changeset 96:85a26478b7de
src/g23m-gsm/sms/sms_for.c: malloc bogon removed
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 21 Jul 2018 01:30:53 +0000 |
parents | a23e6e011264 |
children | 80e3a78126ac |
files | src/g23m-gsm/sms/sms_for.c |
diffstat | 1 files changed, 1 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/src/g23m-gsm/sms/sms_for.c Sat Jul 21 01:12:48 2018 +0000 +++ b/src/g23m-gsm/sms/sms_for.c Sat Jul 21 01:30:53 2018 +0000 @@ -205,7 +205,7 @@ T_SMS_DATA *sms_data,UBYTE ti) { ULONG ccd_err = ERR_NO_MORE_ERROR; - T_CCD_ERR_ENTRY *ccd_err_entry; + T_CCD_ERR_ENTRY *ccd_err_entry = 0; UBYTE p_sdu; UBYTE cp_error_cause = 0; UBYTE length = 0; @@ -213,14 +213,6 @@ BOOL rp_error_send = FALSE; - ccd_err_entry = malloc(sizeof(T_CCD_ERR_ENTRY)); - if(ccd_err_entry EQ NULL) - { - TRACE_EVENT("for_ccd_error_check(): MALLOC returned NULL"); - return FALSE; - } - memset(ccd_err_entry,0, sizeof(ccd_err_entry)); - /* Message offset value */ p_sdu = (buf_sdu->o_buf/8) - 1;