mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Commands: Fix NULL dereference crash
Closes #15833
(cherry picked from commit abd4e2e0f1)
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