mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 20:00:23 +02:00
Merge pull request #1001 from ailin-nemui/fix-997
add missing NULL check
This commit is contained in:
commit
0cdbb2e821
1 changed files with 1 additions and 1 deletions
|
|
@ -481,7 +481,7 @@ gboolean strarray_find_dest(char **array, const TEXT_DEST_REC *dest)
|
|||
g_return_val_if_fail(dest != NULL, FALSE);
|
||||
g_return_val_if_fail(dest->window != NULL, FALSE);
|
||||
|
||||
if (dest->target == NULL)
|
||||
if (dest->target == NULL && dest->window->name != NULL)
|
||||
return strarray_find(array, dest->window->name) != -1 ? TRUE : FALSE;
|
||||
|
||||
item = window_item_find_window(dest->window, dest->server, dest->target);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue