[core] scan-build: Null pointer passed as an argument to a 'nonnull' parameter - switch_event_base_add_header()

This commit is contained in:
Dragos Oancea 2020-02-14 15:53:16 +00:00
parent 944041fb46
commit 39cc48904d

View File

@ -1139,6 +1139,9 @@ static switch_status_t switch_event_base_add_header(switch_event_t *event, switc
memcpy(hv, "|:", 2);
hv += 2;
}
if (!header->array[j]) {
continue;
}
memcpy(hv, header->array[j], strlen(header->array[j]));
hv += strlen(header->array[j]);
}