aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sway/config.c2
1 files changed, 1 insertions, 1 deletions
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;
}