common: Fix an uninitialized variable

This could be uninitialized if the app has --socket=fallback-x11 but
not --socket=wayland, although that's a combination that doesn't make
a great deal of sense. Regression introduced during recent refactoring.

Fixes: db7a8bb5 "common: Split up socket setup from flatpak-run into multiple files"
Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie
2023-05-17 13:06:41 +01:00
committed by Patrick
parent d9a3f34d44
commit dadd737381

View File

@@ -218,7 +218,7 @@ flatpak_run_add_socket_args_environment (FlatpakBwrap *bwrap,
FlatpakContextShares shares,
FlatpakContextSockets sockets)
{
gboolean has_wayland;
gboolean has_wayland = FALSE;
gboolean allow_x11;
if (sockets & FLATPAK_CONTEXT_SOCKET_WAYLAND)