[staticanalysis]: Fix two uses of uninitialized variables

https://bugzilla.gnome.org/show_bug.cgi?id=732020
This commit is contained in:
Colin Walters 2014-06-21 17:22:55 -04:00
parent 7b654a88d4
commit d7067975e7
2 changed files with 2 additions and 2 deletions

View File

@ -244,7 +244,7 @@ ostree_repo_traverse_commit (OstreeRepo *repo,
GCancellable *cancellable,
GError **error)
{
gboolean ret;
gboolean ret = FALSE;
gs_unref_hashtable GHashTable *ret_reachable =
ostree_repo_traverse_new_reachable ();

View File

@ -1888,7 +1888,7 @@ ostree_repo_sign_commit (OstreeRepo *self,
gs_unref_object GOutputStream *tmp_signature_output = NULL;
gs_unref_variant GVariant *commit_variant = NULL;
gs_unref_bytes GBytes *signature_bytes = NULL;
gpgme_ctx_t context;
gpgme_ctx_t context = NULL;
gpgme_engine_info_t info;
gpgme_error_t err;
gpgme_key_t key = NULL;