Avoid dereferencing null configuration

Fixes: https://github.com/SirCmpwn/sway/issues/865
This commit is contained in:
James Murphy 2016-08-20 16:24:08 +00:00
parent f99992a8ae
commit 8af49eb696
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}