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
This commit is contained in:
Timo Sirainen 2002-02-17 09:37:23 +00:00 committed by cras
commit 490e411814
2 changed files with 5 additions and 1 deletions

View file

@ -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) {