From 8af49eb696b76adebb17fb9223027d790a0f6567 Mon Sep 17 00:00:00 2001 From: James Murphy Date: Sat, 20 Aug 2016 16:24:08 +0000 Subject: Avoid dereferencing null configuration Fixes: https://github.com/SirCmpwn/sway/issues/865 --- sway/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sway') diff --git a/sway/config.c b/sway/config.c index 8531a337..bed233bd 100644 --- 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; } -- cgit v1.2.3