mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-16 22:38:38 +00:00
FS-11785 [esl] dead assignments in esl_event_serialize
null attribute in esl_buffer_read null attribute in esl_event_base_add_header null attribute in esl_recv_event
This commit is contained in:
1 parent
c776680c56
commit
ca8fa0e1ff
3 files changed
+3
-5
No files matched your search
@@ -549,6 +549,7 @@ static esl_status_t esl_event_base_add_header(esl_event_t *event, esl_stack_t st
|
||||
redraw:
|
||||
len = 0;
|
||||
for(j = 0; j < header->idx; j++) {
|
||||
esl_assert(header->array[j]);
|
||||
len += strlen(header->array[j]) + 2;
|
||||
}
|
||||
|
||||
@@ -835,12 +836,10 @@ ESL_DECLARE(esl_status_t) esl_event_serialize(esl_event_t *event, char **str, es
|
||||
|
||||
if ((len + llen) > dlen) {
|
||||
char *m;
|
||||
char *old = buf;
|
||||
dlen += (blocksize + (len + llen));
|
||||
if ((m = realloc(buf, dlen))) {
|
||||
buf = m;
|
||||
} else {
|
||||
buf = old;
|
||||
abort();
|
||||
}
|
||||
}
|
||||
@@ -864,12 +863,10 @@ ESL_DECLARE(esl_status_t) esl_event_serialize(esl_event_t *event, char **str, es
|
||||
|
||||
if ((len + llen) > dlen) {
|
||||
char *m;
|
||||
char *old = buf;
|
||||
dlen += (blocksize + (len + llen));
|
||||
if ((m = realloc(buf, dlen))) {
|
||||
buf = m;
|
||||
} else {
|
||||
buf = old;
|
||||
abort();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user