[mod_verto] coverity CID 1468439 (Dereference after null check)

This commit is contained in:
Dragos Oancea 2023-05-31 15:41:39 +03:00 committed by Andrey Volk
parent 8ce8afc843
commit 889f761df6

View File

@ -836,7 +836,7 @@ static void set_perm(const char *str, switch_event_t **event, switch_bool_t add)
switch_event_create(event, SWITCH_EVENT_REQUEST_PARAMS);
}
if (!zstr(str)) {
if (!zstr(str) && event && *event) {
edup = strdup(str);
switch_assert(edup);