mirror of
https://github.com/irssi/irssi.git
synced 2024-09-08 04:26:01 -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:
parent
615efbcc79
commit
637a3c76c1
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user