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:
parent
8b8d48d0b7
commit
941ac87dfe
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user