From 13865551f223dbd4bc5658c045cd41b99b792ab6 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Fri, 2 Sep 2022 18:19:19 +0200 Subject: [PATCH] guard name --- src/events/Events.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/events/Events.cpp b/src/events/Events.cpp index 428d9e7..68f60a7 100644 --- a/src/events/Events.cpp +++ b/src/events/Events.cpp @@ -24,7 +24,8 @@ void Events::scale(void *data, wl_output *wl_output, int32_t scale) { void Events::name(void *data, wl_output *wl_output, const char *name) { const auto PMONITOR = (SMonitor*)data; - PMONITOR->name = name; + if (name) + PMONITOR->name = name; } void Events::description(void *data, wl_output *wl_output, const char *description) {