[coverity] 1543179 Array compared against 0

This commit is contained in:
Armin Novak 2024-04-15 09:47:17 +02:00 committed by akallabeth
parent 0c9fb50170
commit 405a24c200

View File

@ -204,7 +204,7 @@ BOOL xf_event_action_script_init(xfContext* xfc)
char* context = NULL;
strtok_s(buffer, "\n", &context);
if (!buffer || !ArrayList_Append(xfc->xevents, buffer))
if (!ArrayList_Append(xfc->xevents, buffer))
{
pclose(actionScript);
ArrayList_Free(xfc->xevents);