From 445954ddb8113ddae9f2b1cc82674f08d81cf50b Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Thu, 14 Jun 2018 11:55:14 -0400 Subject: [PATCH] app/dbus-helpers: Initialize reboot & dry run vars Minor regression from #1382. Since we no longer always include all the option keys, we actually need to initialize the default values now. Closes: #1410 Closes: #1411 Approved by: cgwalters --- src/app/rpmostree-dbus-helpers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/rpmostree-dbus-helpers.c b/src/app/rpmostree-dbus-helpers.c index af9d6633..cca95eea 100644 --- a/src/app/rpmostree-dbus-helpers.c +++ b/src/app/rpmostree-dbus-helpers.c @@ -852,9 +852,9 @@ rpmostree_transaction_client_run (RpmOstreeCommandInvocation *invocation, g_auto(GVariantDict) optdict = G_VARIANT_DICT_INIT (options); /* Parse back the options variant */ - gboolean opt_reboot; + gboolean opt_reboot = FALSE; g_variant_dict_lookup (&optdict, "reboot", "b", &opt_reboot); - gboolean opt_dry_run; + gboolean opt_dry_run = FALSE; g_variant_dict_lookup (&optdict, "dry-run", "b", &opt_dry_run); if (opt_dry_run)