diff options
author | Timo Sirainen <cras@irssi.org> | 2002-02-17 09:37:23 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-02-17 09:37:23 +0000 |
commit | 490e411814ff8cc5c4c9d26bf7987cd7254fa06a (patch) | |
tree | 3899ffd1f2b8c42258832800c09f814b8f182c7b /src/core | |
parent | 81c2e557d18844a1e73e222c57851316fb85a359 (diff) | |
download | irssi-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.c | 2 |
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) { |