0
0
Fork 0
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:
Randy Heit 2014-12-23 21:33:47 -06:00
parent d3272f75e7
commit 5caadeba4c

View file

@ -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;