aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2024-05-18 16:13:08 +0200
committerFurkan Sahin <furkan-dev@proton.me>2024-05-18 16:13:08 +0200
commit8705cb8867f14b2cac3d52e935e26ab740b9b0f0 (patch)
treea09bc97b34719506f65cea13aad7849df9b7832a
parent6f14f4bd38295ed03018f891f50eba136f024e01 (diff)
sway/config/output.c: fix null deref on output config
If there's no config for the output, oc is null, but some screens might have a default rotation, causing the log call to dereference a null pointer. Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
-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 fb1956df..e7299459 100644
--- a/sway/config/output.c
+++ b/sway/config/output.c
@@ -448,7 +448,7 @@ static void queue_output_config(struct output_config *oc,
#endif
}
if (wlr_output->transform != tr) {
- sway_log(SWAY_DEBUG, "Set %s transform to %d", oc->name, tr);
+ sway_log(SWAY_DEBUG, "Set %s transform to %d", wlr_output->name, tr);
wlr_output_state_set_transform(pending, tr);
}