diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2016-08-20 16:24:08 +0000 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2016-08-20 16:24:08 +0000 |
| commit | c0d6401ab0edd8449466bbf015b9763b5d6d41c2 (patch) | |
| tree | 57de40ae3d12581251bb7499cd1e553153e15a92 | |
| parent | 568303fe05507d512c42f7f564e1c52464d0fe16 (diff) | |
Avoid dereferencing null configuration
Fixes: https://github.com/SirCmpwn/sway/issues/865
| -rw-r--r-- | sway/config.c | 2 |
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; } |
