init mem
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9141 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
13d880e923
commit
dc9133ef28
|
@ -486,11 +486,12 @@ static switch_status_t read_packet(listener_t *listener, switch_event_t **event,
|
|||
clen = atoi(val);
|
||||
|
||||
if (clen > 0) {
|
||||
char *body = malloc(clen + 1);
|
||||
char *ptr = body;
|
||||
char *body;
|
||||
char *ptr;
|
||||
|
||||
switch_assert(body);
|
||||
switch_zmalloc(body, clen + 1);
|
||||
|
||||
ptr = body;
|
||||
while(clen > 0) {
|
||||
mlen = clen;
|
||||
|
||||
|
|
Loading…
Reference in New Issue