[ostree] core: Initialize variables in fsck



commit dc4164993b5d031507f73e82d124e6d1d392bf63
Author: Colin Walters <walters verbum org>
Date:   Thu Dec 8 18:23:13 2011 -0500

    core: Initialize variables in fsck
    
    Otherwise we segfault on an unhandled filename.

 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 af198c8..f180773 100644
--- a/src/libostree/ostree-repo.c
+++ b/src/libostree/ostree-repo.c
@@ -1905,8 +1905,8 @@ iter_object_dir (OstreeRepo             *self,
     {
       const char *name;
       guint32 type;
-      char *dot;
-      GFile *child;
+      char *dot = NULL;
+      GFile *child = NULL;
       GString *checksum = NULL;
       OstreeObjectType objtype;
 



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