projects
/
mikachu
/
openbox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Don't segfault when there's no target in If
[mikachu/openbox.git]
/
openbox
/
actions
/
if.c
diff --git
a/openbox/actions/if.c
b/openbox/actions/if.c
index
a083d48
..
67d067e
100644
(file)
--- a/
openbox/actions/if.c
+++ b/
openbox/actions/if.c
@@
-327,7
+327,10
@@
static gboolean run_func_if(ObActionsData *data, gpointer options)
}
/* 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)
is_true &= query_target->shaded;