mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-19 01:45:32 +00:00
Merge pull request #277 from dragos-oancea/switch_event_base_add_header-null
[core] scan-build: Null pointer passed as an argument to a 'nonnull' parameter - switch_event_base_add_header()
This commit is contained in:
commit
c84d1da934
@ -1114,7 +1114,11 @@ static switch_status_t switch_event_base_add_header(switch_event_t *event, switc
|
|||||||
redraw:
|
redraw:
|
||||||
len = 0;
|
len = 0;
|
||||||
for(j = 0; j < header->idx; j++) {
|
for(j = 0; j < header->idx; j++) {
|
||||||
len += strlen(header->array[j]) + 2;
|
len += 2;
|
||||||
|
if (!header->array[j]) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
len += strlen(header->array[j]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (len) {
|
if (len) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user