mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-24 11:48:48 +00:00
[core] scan-build: Null pointer passed as an argument to a 'nonnull' parameter - switch_event_base_add_header()
This commit is contained in:
parent
944041fb46
commit
39cc48904d
@ -1139,6 +1139,9 @@ static switch_status_t switch_event_base_add_header(switch_event_t *event, switc
|
|||||||
memcpy(hv, "|:", 2);
|
memcpy(hv, "|:", 2);
|
||||||
hv += 2;
|
hv += 2;
|
||||||
}
|
}
|
||||||
|
if (!header->array[j]) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
memcpy(hv, header->array[j], strlen(header->array[j]));
|
memcpy(hv, header->array[j], strlen(header->array[j]));
|
||||||
hv += strlen(header->array[j]);
|
hv += strlen(header->array[j]);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user