1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-22 17:22:18 -05:00

Add missing NULL check in cmd_lastlog

Closes #961
This commit is contained in:
cortexcorepl 2014-04-26 18:12:46 +02:00 committed by TingPing
parent 5af678d2b9
commit 187c04f7e2

View File

@ -2486,7 +2486,7 @@ cmd_lastlog (struct session *sess, char *tbuf, char *word[], char *word_eol[])
} }
j++; j++;
} }
if (*word_eol[j]) if (word_eol[j] != NULL && *word_eol[j])
{ {
lastlog (sess, word_eol[j], flags); lastlog (sess, word_eol[j], flags);
return TRUE; return TRUE;