src/seat.c: provide NULL fallback for output name

This fixes a warning when doing a release build.
This commit is contained in:
Consolatis 2024-02-10 17:25:27 +01:00
parent 8709962068
commit e9552fb661

View file

@ -282,7 +282,7 @@ map_touch_to_output(struct seat *seat, struct wlr_input_device *dev)
} }
char *output_name = touch->output_name ? touch->output_name : touch_config_output_name; char *output_name = touch->output_name ? touch->output_name : touch_config_output_name;
wlr_log(WLR_INFO, "map touch to output %s\n", output_name); wlr_log(WLR_INFO, "map touch to output %s\n", output_name ? output_name : "unknown");
map_input_to_output(seat, dev, output_name); map_input_to_output(seat, dev, output_name);
} }