diff --git a/src/app/main.c b/src/app/main.c index c2a096be..944c3d39 100644 --- a/src/app/main.c +++ b/src/app/main.c @@ -234,7 +234,7 @@ main (int argc, if (!command->fn) { GOptionContext *context; - gs_free char *help; + gs_free char *help = NULL; context = option_context_new_with_commands (); diff --git a/src/app/rpmostree-builtin-compose.c b/src/app/rpmostree-builtin-compose.c index b1532b19..3eba80fc 100644 --- a/src/app/rpmostree-builtin-compose.c +++ b/src/app/rpmostree-builtin-compose.c @@ -106,7 +106,7 @@ rpmostree_builtin_compose (int argc, char **argv, GCancellable *cancellable, GEr if (!subcommand->name) { GOptionContext *context; - gs_free char *help; + gs_free char *help = NULL; context = compose_option_context_new_with_commands (); diff --git a/src/app/rpmostree-builtin-db.c b/src/app/rpmostree-builtin-db.c index b051a516..56ce1e33 100644 --- a/src/app/rpmostree-builtin-db.c +++ b/src/app/rpmostree-builtin-db.c @@ -167,7 +167,7 @@ rpmostree_builtin_db (int argc, char **argv, GCancellable *cancellable, GError * if (!subcommand->name) { GOptionContext *context; - gs_free char *help; + gs_free char *help = NULL; context = rpm_option_context_new_with_commands (); diff --git a/src/daemon/rpmostreed-transaction.c b/src/daemon/rpmostreed-transaction.c index 9b766926..7e64ce82 100644 --- a/src/daemon/rpmostreed-transaction.c +++ b/src/daemon/rpmostreed-transaction.c @@ -190,7 +190,7 @@ transaction_progress_changed_cb (OstreeAsyncProgress *progress, GVariant *arg_content; GVariant *arg_transfer; - g_autofree gchar *status; + g_autofree gchar *status = NULL; /* If there is a status that is all we output */ status = ostree_async_progress_get_status (progress); diff --git a/src/libpriv/rpmostree-rpm-util.c b/src/libpriv/rpmostree-rpm-util.c index 202eb4c0..5d05ff7b 100644 --- a/src/libpriv/rpmostree-rpm-util.c +++ b/src/libpriv/rpmostree-rpm-util.c @@ -920,7 +920,7 @@ void rpmostree_print_transaction (HifContext *hifctx) { guint i; - g_autoptr(GPtrArray) install; + g_autoptr(GPtrArray) install = NULL; install = hif_goal_get_packages (hif_context_get_goal (hifctx), HIF_PACKAGE_INFO_INSTALL,