[ostree] pull: Squash some uninitialized variable warnings



commit a59307872275bd4b92367e0604dee00f4595fb9e
Author: Colin Walters <walters verbum org>
Date:   Mon Sep 8 13:42:50 2014 -0400

    pull: Squash some uninitialized variable warnings

 src/libostree/ostree-repo-pull.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libostree/ostree-repo-pull.c b/src/libostree/ostree-repo-pull.c
index 273c963..e89e723 100644
--- a/src/libostree/ostree-repo-pull.c
+++ b/src/libostree/ostree-repo-pull.c
@@ -1470,11 +1470,11 @@ ostree_repo_pull_one_dir (OstreeRepo               *self,
   while (g_hash_table_iter_next (&hash_iter, &key, &value))
     {
       const char *branch = key;
-      char *contents;
+      char *contents = NULL;
 
       if (pull_data->summary)
         {
-          guint64 commit_size;
+          guint64 commit_size = 0;
           guint64 *malloced_size;
 
           if (!lookup_commit_checksum_from_summary (pull_data, branch, &contents, &commit_size, error))


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