[ostree/wip/archive-v3: 2/10] core: Fix uninitialized variables



commit d63ec5c2ff22707895f157ffb1080ea35f751c7a
Author: Colin Walters <walters verbum org>
Date:   Wed Apr 11 19:52:57 2012 -0400

    core: Fix uninitialized variables

 src/libostree/ostree-repo.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libostree/ostree-repo.c b/src/libostree/ostree-repo.c
index ff4c46a..cb81a5b 100644
--- a/src/libostree/ostree-repo.c
+++ b/src/libostree/ostree-repo.c
@@ -3145,8 +3145,8 @@ list_objects_in_index (OstreeRepo                     *self,
   guint64 offset;
   ot_lobj GFile *index_path = NULL;
   ot_lvariant GVariant *index_variant = NULL;
-  ot_lvariant GVariant *contents;
-  ot_lvariant GVariant *csum_bytes;
+  ot_lvariant GVariant *contents = NULL;
+  ot_lvariant GVariant *csum_bytes = NULL;
   ot_lfree char *checksum = NULL;
   GVariantIter content_iter;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]