From e9552fb6610953dd54da459246f0ef843173a9bc Mon Sep 17 00:00:00 2001 From: Consolatis <35009135+Consolatis@users.noreply.github.com> Date: Sat, 10 Feb 2024 17:25:27 +0100 Subject: [PATCH] src/seat.c: provide NULL fallback for output name This fixes a warning when doing a release build. --- src/seat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/seat.c b/src/seat.c index 95b8db84..e574d291 100644 --- a/src/seat.c +++ b/src/seat.c @@ -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; - 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); }