aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorick van Pelt <yorick@yorickvanpelt.nl>2020-02-13 12:54:48 +0100
committerSimon Ser <contact@emersion.fr>2020-02-13 13:05:17 +0100
commit447967ad3a68b5a515581e4db76fb232cf56caa3 (patch)
treec232528b41409e04e3585aeb4efa6bccfff07eb1
parent7999845357bacac9c7599c899c0d6e88dac0791e (diff)
Fix crash: use wlr_output->name instead of possibly missing oc->name
Fixes segfault on start: https://gist.github.com/yorickvP/89eccb3782c6edb22aeda6ce9c6d4fcb
-rw-r--r--sway/config/output.c2
1 files changed, 1 insertions, 1 deletions
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);
}