summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-02-16 07:37:31 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-02-16 07:37:31 +0000
commit941ac87dfe46362485654576fd411dd47b4db8b9 (patch)
tree959893c58b86d898e921b9d807bd9cd29858bbc8
parent8b8d48d0b7bf392649ca4b1527df17d5f8b202b9 (diff)
downloadirssi-941ac87dfe46362485654576fd411dd47b4db8b9.zip
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
-rw-r--r--src/fe-text/gui-readline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c
index 3eb527fe..e12f15f8 100644
--- a/src/fe-text/gui-readline.c
+++ b/src/fe-text/gui-readline.c
@@ -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;
}