diff options
author | lukefromdc <[email protected]> | 2023-10-09 14:06:40 -0400 |
---|---|---|
committer | raveit65 <[email protected]> | 2023-10-10 11:24:03 +0200 |
commit | 0808f973c42fba85719322c9a2ffdb9289201f3f (patch) | |
tree | 3c90bb2fb2e4be25bcc77d47a2e54ee7c9faa06f /libmate-desktop | |
parent | 8689fbe8dfc6c37cb24e116aacb3981f580a2abf (diff) | |
download | mate-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
Diffstat (limited to 'libmate-desktop')
-rw-r--r-- | libmate-desktop/mate-desktop-item.c | 4 |
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) { |