mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 23:01:59 +00:00
Use a null check instead of strlen in ShoveChatStr
This commit is contained in:
parent
d3272f75e7
commit
5caadeba4c
1 changed files with 2 additions and 1 deletions
|
@ -343,7 +343,8 @@ static void CT_ClearChatMessage ()
|
|||
|
||||
static void ShoveChatStr (const char *str, BYTE who)
|
||||
{
|
||||
if (strlen(str) < 1) // Don't send empty messages
|
||||
// Don't send empty messages
|
||||
if (str == NULL || str[0] == '\0')
|
||||
return;
|
||||
|
||||
FString substBuff;
|
||||
|
|
Loading…
Reference in a new issue