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:
Chris Rienzo authored and Andrey Volk committed 2019-07-17 20:22:11 +04:00
1 parent c776680c56
commit ca8fa0e1ff
3 files changed
+3 -5

No files matched your search

+1 -4
View File
@@ -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();
}
}