[ostree] [staticanalysis]: Fix two uses of uninitialized variables
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] [staticanalysis]: Fix two uses of uninitialized variables
- Date: Sun, 22 Jun 2014 00:21:29 +0000 (UTC)
commit d7067975e7beb60a0a3d30fe668952def3d61775
Author: Colin Walters <walters verbum org>
Date: Sat Jun 21 17:22:55 2014 -0400
[staticanalysis]: Fix two uses of uninitialized variables
https://bugzilla.gnome.org/show_bug.cgi?id=732020
src/libostree/ostree-repo-traverse.c | 2 +-
src/libostree/ostree-repo.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libostree/ostree-repo-traverse.c b/src/libostree/ostree-repo-traverse.c
index 758c233..55b9174 100644
--- a/src/libostree/ostree-repo-traverse.c
+++ b/src/libostree/ostree-repo-traverse.c
@@ -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 ();
diff --git a/src/libostree/ostree-repo.c b/src/libostree/ostree-repo.c
index 45d0fbc..5676664 100644
--- a/src/libostree/ostree-repo.c
+++ b/src/libostree/ostree-repo.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]