1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05: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 */ /* variable - check if it's empty */
p++; p++;
ret = parse_special((char **) &p, active_win->active_server, ret = parse_special((char **) &p,
active_win->active, arglist, &free_ret, NULL, 0); active_win == NULL ? NULL : active_win->active_server,
active_win == NULL ? NULL : active_win->active,
arglist, &free_ret, NULL, 0);
p++; p++;
while (*p == ' ') p++; while (*p == ' ') p++;