1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

Don't crash when handling input line if the input line doesn't exist (huh?

how? no idea :)


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2469 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-02-16 07:37:31 +00:00 committed by cras
parent 8b8d48d0b7
commit 941ac87dfe

View File

@ -173,7 +173,7 @@ static void key_send_line(void)
char *str, *add_history; char *str, *add_history;
str = gui_entry_get_text(active_entry); str = gui_entry_get_text(active_entry);
if (*str == '\0') { if (str == NULL || *str == '\0') {
g_free(str); g_free(str);
return; return;
} }