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
commit 941ac87dfe

View file

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