summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-02-17 09:37:23 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-02-17 09:37:23 +0000
commit490e411814ff8cc5c4c9d26bf7987cd7254fa06a (patch)
tree3899ffd1f2b8c42258832800c09f814b8f182c7b /src/core
parent81c2e557d18844a1e73e222c57851316fb85a359 (diff)
downloadirssi-490e411814ff8cc5c4c9d26bf7987cd7254fa06a.zip
Don't crash if special vars line ends with '$'.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2488 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core')
-rw-r--r--src/core/special-vars.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/special-vars.c b/src/core/special-vars.c
index 4b1f535b..2556cd63 100644
--- a/src/core/special-vars.c
+++ b/src/core/special-vars.c
@@ -362,6 +362,8 @@ char *parse_special(char **cmd, SERVER_REC *server, void *item,
int brackets, nest_free;
*free_ret = FALSE;
+ if (**cmd == '\0')
+ return NULL;
command = **cmd; (*cmd)++;
switch (command) {