changeset 824:a7bbc4fdd447

g23m-gsm/sms/sms_for.c: bogus call to malloc removed
author Space Falcon <falcon@ivan.Harhan.ORG>
date Sun, 05 Apr 2015 22:20:29 +0000
parents d93ecff8544b
children f8eaff87563f
files gsm-fw/g23m-gsm/sms/sms_for.c
diffstat 1 files changed, 1 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/gsm-fw/g23m-gsm/sms/sms_for.c	Sun Apr 05 20:45:18 2015 +0000
+++ b/gsm-fw/g23m-gsm/sms/sms_for.c	Sun Apr 05 22:20:29 2015 +0000
@@ -209,7 +209,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;
@@ -217,14 +217,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;