projects
/
mikachu
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
904b175
)
Don't segfault when there's no target in If
author
Mikael Magnusson
<mikachu@gmail.com>
Tue, 17 Sep 2013 16:47:45 +0000
(18:47 +0200)
committer
Mikael Magnusson
<mikachu@gmail.com>
Tue, 17 Sep 2013 16:47:45 +0000
(18:47 +0200)
openbox/actions/if.c
patch
|
blob
|
history
diff --git
a/openbox/actions/if.c
b/openbox/actions/if.c
index 26549273f9b34d0bc8eac9e32470bc14eaba7bfb..395b9b1972575ebd6bca8fb7cd816704c503da48 100644
(file)
--- a/
openbox/actions/if.c
+++ b/
openbox/actions/if.c
@@
-335,7
+335,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;