mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-10 19:52:41 +00:00
more code analysis mostly trivial except string formating changes
This commit is contained in:
1 parent
5409caca22
commit
5923f71a84
6 files changed
+30
-24
No files matched your search
+4
-6
@@ -1302,11 +1302,10 @@ SWITCH_DECLARE(switch_status_t) switch_event_serialize(switch_event_t *event, ch
|
||||
llen = strlen(hp->name) + strlen(encode_buf) + 8;
|
||||
|
||||
if ((len + llen) > dlen) {
|
||||
char *m;
|
||||
char *m = buf;
|
||||
dlen += (blocksize + (len + llen));
|
||||
if ((m = realloc(buf, dlen))) {
|
||||
if (!(buf = realloc(buf, dlen))) {
|
||||
buf = m;
|
||||
} else {
|
||||
abort();
|
||||
}
|
||||
}
|
||||
@@ -1329,11 +1328,10 @@ SWITCH_DECLARE(switch_status_t) switch_event_serialize(switch_event_t *event, ch
|
||||
}
|
||||
|
||||
if ((len + llen) > dlen) {
|
||||
char *m;
|
||||
char *m = buf;
|
||||
dlen += (blocksize + (len + llen));
|
||||
if ((m = realloc(buf, dlen))) {
|
||||
if (!(buf = realloc(buf, dlen))) {
|
||||
buf = m;
|
||||
} else {
|
||||
abort();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user