diff --git a/src/libostree/ostree-sysroot.c b/src/libostree/ostree-sysroot.c index 56811b88..fcbd3dc4 100644 --- a/src/libostree/ostree-sysroot.c +++ b/src/libostree/ostree-sysroot.c @@ -680,8 +680,8 @@ ostree_sysroot_load (OstreeSysroot *self, { gboolean ret = FALSE; guint i; - int bootversion; - int subbootversion; + int bootversion = 0; + int subbootversion = 0; gs_unref_ptrarray GPtrArray *boot_loader_configs = NULL; gs_unref_ptrarray GPtrArray *deployments = NULL; diff --git a/src/ostree/ot-builtin-remote.c b/src/ostree/ot-builtin-remote.c index 7db9edc5..de6dcba8 100644 --- a/src/ostree/ot-builtin-remote.c +++ b/src/ostree/ot-builtin-remote.c @@ -134,7 +134,7 @@ ostree_builtin_remote (int argc, char **argv, OstreeRepo *repo, GCancellable *ca } else if (!strcmp (op, "show-url")) { - gs_free char *url; + gs_free char *url = NULL; url = g_key_file_get_string (config, key, "url", error); if (url == NULL) diff --git a/src/ostree/ot-dump.c b/src/ostree/ot-dump.c index efa7f968..bb1f9824 100644 --- a/src/ostree/ot-dump.c +++ b/src/ostree/ot-dump.c @@ -91,7 +91,7 @@ dump_commit (GVariant *variant, const gchar *subject; const gchar *body; guint64 timestamp; - gs_free gchar *str; + gs_free gchar *str = NULL; /* See OSTREE_COMMIT_GVARIANT_FORMAT */ g_variant_get (variant, "(a{sv}aya(say)&s&stayay)", NULL, NULL, NULL,