[ostree] core: Fix uninitialized variable



commit eae4e879c8409ccf88cff9354ce79d230a92ab44
Author: Colin Walters <walters verbum org>
Date:   Mon Nov 14 15:09:00 2011 -0500

    core: Fix uninitialized variable

 libostree/ostree-repo.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libostree/ostree-repo.c b/libostree/ostree-repo.c
index 2d94e0d..0d34531 100644
--- a/libostree/ostree-repo.c
+++ b/libostree/ostree-repo.c
@@ -546,7 +546,7 @@ write_gvariant_to_tmp (OstreeRepo  *self,
   char *dest_name = NULL;
   int fd = -1;
   GUnixOutputStream *stream = NULL;
-  GChecksum *checksum;
+  GChecksum *checksum = NULL;
 
   serialized = g_variant_new ("(uv)", GUINT32_TO_BE ((guint32)type), variant);
 



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