[ostree/wip/delta2] core: Fix uninitialized variable



commit b3ba625038dd935119df957642093104bface6d4
Author: Colin Walters <walters verbum org>
Date:   Sun Apr 27 23:23:30 2014 -0400

    core: Fix uninitialized variable

 src/libostree/ostree-core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libostree/ostree-core.c b/src/libostree/ostree-core.c
index a5797e3..5de751f 100644
--- a/src/libostree/ostree-core.c
+++ b/src/libostree/ostree-core.c
@@ -1775,7 +1775,7 @@ GVariant *
 _ostree_detached_metadata_append_gpg_sig (GVariant   *existing_metadata,
                                           GBytes     *signature_bytes)
 {
-  GVariantBuilder *builder;
+  GVariantBuilder *builder = NULL;
   gs_unref_variant GVariant *signaturedata = NULL;
   gs_unref_variant_builder GVariantBuilder *signature_builder = NULL;
 


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