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
1 changed files with 2 additions and 1 deletions

View File

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