From dadd737381d61c0febaa86bb44e9acd32849ec32 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 17 May 2023 13:06:41 +0100 Subject: 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 --- common/flatpak-run-sockets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/flatpak-run-sockets.c') diff --git a/common/flatpak-run-sockets.c b/common/flatpak-run-sockets.c index e7767d26..6e64d73d 100644 --- a/common/flatpak-run-sockets.c +++ b/common/flatpak-run-sockets.c @@ -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) -- cgit v1.2.1