[Desc.] modify vmodem/at/at_func.c, at_msg.c
* Sooyoung Ha <yoosah.ha@samsung.com>
* Sungmin Ha <sungmin82.ha@samsung.com>
* YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
* HyunGoo Kang <hyungoo1.kang@samsung.com>
*
* This program is free software; you can redistribute it and/or
int hexStringToBytes(char* d, char * s)
{
- char* ret;
int i;
int sz;
- if(s == NULL)
+ if(s == NULL || d == NULL)
return 0;
- sz = strlen(s);
-
- ret = malloc(sz /2);
-
+ sz = strlen(s);
for(i = 0; i < sz; i += 2)
{
void ATPushHDLCMultiFrameInfo(HDLCFrame_t const* pframe)
{
TRACE(MSGL_VGSM_INFO, "\n");
+ if (!pframe)
+ return;
HDLCNode* pnode = malloc(sizeof(HDLCNode));
- if (!pframe)
+ if (!pnode)
return;
memset(pnode, 0, sizeof(HDLCNode));
* Sooyoung Ha <yoosah.ha@samsung.com>
* Sungmin Ha <sungmin82.ha@samsung.com>
* YeongKyoon Lee <yeongkyoon.lee@samsung.com>
- * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
* HyunGoo Kang <hyungoo1.kang@samsung.com>
*
* This program is free software; you can redistribute it and/or