guard name

This commit is contained in:
vaxerski 2022-09-02 18:19:19 +02:00
parent d0ed94a52d
commit 13865551f2

View file

@ -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) {