commit 8af49eb696b76adebb17fb9223027d790a0f6567
parent f99992a8ae09e3a988f92558824fa1dc580a55cf
Author: James Murphy <james.murphy.debian@gmail.com>
Date: Sat, 20 Aug 2016 16:24:08 +0000
Avoid dereferencing null configuration
Fixes: https://github.com/SirCmpwn/sway/issues/865
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sway/config.c b/sway/config.c
@@ -859,7 +859,7 @@ void apply_input_config(struct input_config *ic, struct libinput_device *dev) {
}
void apply_output_config(struct output_config *oc, swayc_t *output) {
- if (oc->enabled == 0) {
+ if (oc && oc->enabled == 0) {
destroy_output(output);
return;
}