From 447967ad3a68b5a515581e4db76fb232cf56caa3 Mon Sep 17 00:00:00 2001 From: Yorick van Pelt Date: Thu, 13 Feb 2020 12:54:48 +0100 Subject: Fix crash: use wlr_output->name instead of possibly missing oc->name Fixes segfault on start: https://gist.github.com/yorickvP/89eccb3782c6edb22aeda6ce9c6d4fcb --- sway/config/output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sway') diff --git a/sway/config/output.c b/sway/config/output.c index 26d40f3e..de566869 100644 --- a/sway/config/output.c +++ b/sway/config/output.c @@ -383,7 +383,7 @@ bool apply_output_config(struct output_config *oc, struct sway_output *output) { sway_log(SWAY_DEBUG, "Auto-detected output scale: %f", scale); } if (scale != wlr_output->scale) { - sway_log(SWAY_DEBUG, "Set %s scale to %f", oc->name, scale); + sway_log(SWAY_DEBUG, "Set %s scale to %f", wlr_output->name, scale); wlr_output_set_scale(wlr_output, scale); } -- cgit v1.2.3-54-g00ecf