mirror of
https://github.com/irssi/irssi.git
synced 2026-08-08 19:30:15 +02: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue