tree-wide: Fix use of potentially uninitialized variables
These were caught by Clang. Closes: #505 Approved by: jlebon
This commit is contained in:
parent
55593b77c4
commit
e4068c5094
@ -68,9 +68,11 @@ get_active_txn (RPMOSTreeSysroot *sysroot_proxy)
|
|||||||
GVariant* txn = rpmostree_sysroot_get_active_transaction (sysroot_proxy);
|
GVariant* txn = rpmostree_sysroot_get_active_transaction (sysroot_proxy);
|
||||||
const char *a, *b, *c;
|
const char *a, *b, *c;
|
||||||
if (txn)
|
if (txn)
|
||||||
|
{
|
||||||
g_variant_get (txn, "(&s&s&s)", &a, &b, &c);
|
g_variant_get (txn, "(&s&s&s)", &a, &b, &c);
|
||||||
if (*a)
|
if (*a)
|
||||||
return txn;
|
return txn;
|
||||||
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -109,7 +111,7 @@ status_generic (RPMOSTreeSysroot *sysroot_proxy,
|
|||||||
{
|
{
|
||||||
g_autoptr(GVariant) child = g_variant_iter_next_value (&iter);
|
g_autoptr(GVariant) child = g_variant_iter_next_value (&iter);
|
||||||
g_autoptr(GVariantDict) dict = NULL;
|
g_autoptr(GVariantDict) dict = NULL;
|
||||||
const gchar *const*origin_packages;
|
const gchar *const*origin_packages = NULL;
|
||||||
const gchar *origin_refspec;
|
const gchar *origin_refspec;
|
||||||
const gchar *id;
|
const gchar *id;
|
||||||
const gchar *os_name;
|
const gchar *os_name;
|
||||||
|
@ -518,7 +518,7 @@ rpmostree_transaction_get_response_sync (RPMOSTreeSysroot *sysroot_proxy,
|
|||||||
|
|
||||||
TransactionProgress *tp = transaction_progress_new ();
|
TransactionProgress *tp = transaction_progress_new ();
|
||||||
|
|
||||||
const char *bus_name;
|
const char *bus_name = NULL;
|
||||||
gint cancel_handler;
|
gint cancel_handler;
|
||||||
gulong signal_handler = 0;
|
gulong signal_handler = 0;
|
||||||
gboolean success = FALSE;
|
gboolean success = FALSE;
|
||||||
|
Loading…
Reference in New Issue
Block a user