Don't segfault when there's no target in If
This commit is contained in:
parent
835ef3253f
commit
a8a2375c44
1 changed files with 4 additions and 1 deletions
|
@ -327,7 +327,10 @@ static gboolean run_func_if(ObActionsData *data, gpointer options)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If there's no client to query, then false. */
|
/* If there's no client to query, then false. */
|
||||||
is_true &= query_target != NULL;
|
if (!query_target) {
|
||||||
|
is_true = FALSE;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if (q->shaded_on)
|
if (q->shaded_on)
|
||||||
is_true &= query_target->shaded;
|
is_true &= query_target->shaded;
|
||||||
|
|
Loading…
Reference in a new issue