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
This commit is contained in:
Jonathan Lebon 2018-06-14 11:55:14 -04:00 committed by Atomic Bot
parent fb006b5b43
commit 445954ddb8

View File

@ -852,9 +852,9 @@ rpmostree_transaction_client_run (RpmOstreeCommandInvocation *invocation,
g_auto(GVariantDict) optdict = G_VARIANT_DICT_INIT (options); g_auto(GVariantDict) optdict = G_VARIANT_DICT_INIT (options);
/* Parse back the options variant */ /* Parse back the options variant */
gboolean opt_reboot; gboolean opt_reboot = FALSE;
g_variant_dict_lookup (&optdict, "reboot", "b", &opt_reboot); 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); g_variant_dict_lookup (&optdict, "dry-run", "b", &opt_dry_run);
if (opt_dry_run) if (opt_dry_run)