mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-03-02 06:42:41 +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)
|
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;
|
return;
|
||||||
|
|
||||||
FString substBuff;
|
FString substBuff;
|
||||||
|
|
Loading…
Reference in a new issue