summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2023-10-09 14:06:40 -0400
committerraveit65 <[email protected]>2023-10-10 11:24:03 +0200
commit0808f973c42fba85719322c9a2ffdb9289201f3f (patch)
tree3c90bb2fb2e4be25bcc77d47a2e54ee7c9faa06f
parent8689fbe8dfc6c37cb24e116aacb3981f580a2abf (diff)
downloadmate-desktop-0808f973c42fba85719322c9a2ffdb9289201f3f.tar.bz2
mate-desktop-0808f973c42fba85719322c9a2ffdb9289201f3f.tar.xz
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
-rw-r--r--libmate-desktop/mate-desktop-item.c4
1 files changed, 4 insertions, 0 deletions
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) {