From 0808f973c42fba85719322c9a2ffdb9289201f3f Mon Sep 17 00:00:00 2001 From: lukefromdc Date: Mon, 9 Oct 2023 14:06:40 -0400 Subject: wayland: fix uninitialized variable We still have sn_display in the runtime checks to determine whether to call the startup notification, so we have to initialize it to NULL in the wayland case --- libmate-desktop/mate-desktop-item.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libmate-desktop/mate-desktop-item.c') diff --git a/libmate-desktop/mate-desktop-item.c b/libmate-desktop/mate-desktop-item.c index 89025a2..baf0ad6 100644 --- a/libmate-desktop/mate-desktop-item.c +++ b/libmate-desktop/mate-desktop-item.c @@ -1873,6 +1873,10 @@ ditem_execute (const MateDesktopItem *item, sn_context = NULL; } } + else { + sn_context = NULL; + sn_display = NULL; + } #endif if (screen) { -- cgit v1.2.1