Core/Commands: Fix NULL dereference crash
Closes #15833 (cherry picked from commit abd4e2e0f1142b8a9edfe31e58bdbca1d4e87c42)
This commit is contained in:
@@ -1015,7 +1015,7 @@ void ChatHandler::extractOptFirstArg(char* args, char** arg1, char** arg2)
|
||||
|
||||
char* ChatHandler::extractQuotedArg(char* args)
|
||||
{
|
||||
if (!*args)
|
||||
if (!args || !*args)
|
||||
return NULL;
|
||||
|
||||
if (*args == '"')
|
||||
|
||||
Reference in New Issue
Block a user