Skip to content

Commit

Permalink
common: Fix an uninitialized variable
Browse files Browse the repository at this point in the history
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: db7a8bb "common: Split up socket setup from flatpak-run into multiple files"
Signed-off-by: Simon McVittie <[email protected]>
  • Loading branch information
smcv authored and TingPing committed May 17, 2023
1 parent d9a3f34 commit dadd737
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/flatpak-run-sockets.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit dadd737

Please sign in to comment.