Fixed PubSub, return error on NULL

This commit is contained in:
Armin Novak
2022-10-10 11:17:14 +02:00
committed by akallabeth
parent 2acf21b592
commit 1d71ace487

View File

@@ -185,7 +185,9 @@ int PubSub_OnEvent(wPubSub* pubSub, const char* EventName, void* context, const
size_t index;
wEventType* event;
int status = -1;
WINPR_ASSERT(pubSub);
if (!pubSub)
return -1;
WINPR_ASSERT(e);
if (pubSub->synchronized)