Core/Commands: Fix NULL dereference crash

Closes #15833
This commit is contained in:
jackpoz committed 2015-11-10 21:14:18 +01:00
1 parent 311a8df4b7
commit abd4e2e0f1
1 file changed
+1 -1
+1 -1
View File
@@ -1131,7 +1131,7 @@ void ChatHandler::extractOptFirstArg(char* args, char** arg1, char** arg2)
char* ChatHandler::extractQuotedArg(char* args)
{
if (!*args)
if (!args || !*args)
return NULL;
if (*args == '"')