1
0
mirror of https://github.com/irssi/irssi.git synced 2024-08-04 03:34:18 -04:00

data_is_empty() might have crashed when it was called at the startup when

there was no active window.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2127 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-11-20 12:38:03 +00:00 committed by cras
parent 615efbcc79
commit 637a3c76c1

View File

@ -264,8 +264,10 @@ static int data_is_empty(const char **data)
/* variable - check if it's empty */
p++;
ret = parse_special((char **) &p, active_win->active_server,
active_win->active, arglist, &free_ret, NULL, 0);
ret = parse_special((char **) &p,
active_win == NULL ? NULL : active_win->active_server,
active_win == NULL ? NULL : active_win->active,
arglist, &free_ret, NULL, 0);
p++;
while (*p == ' ') p++;