]> git.mdlowis.com Git - proto/labwc.git/commitdiff
src/seat.c: provide NULL fallback for output name
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Sat, 10 Feb 2024 16:25:27 +0000 (17:25 +0100)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Sat, 10 Feb 2024 18:22:12 +0000 (19:22 +0100)
This fixes a warning when doing a release build.

src/seat.c

index 95b8db8434c61a271b2bb7096c18ec5cce8316d8..e574d291cdbd3662ee6101e99daffb52cdc06897 100644 (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;
-       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);
 }