File 0012-Initialize-GhtHash-before-passing-it-for-read-to-ght.patch of Package libght

From e8bb996c8c8f11c81871f6d99dfcab01545e756e Mon Sep 17 00:00:00 2001
From: Sandro Santilli <strk@keybit.net>
Date: Tue, 3 Feb 2015 12:39:22 +0100
Subject: [PATCH 12/16] Initialize GhtHash before passing it for read to
 ght_node_to_nodelist

---
 test/cu_ght_core.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/cu_ght_core.c b/test/cu_ght_core.c
index 136ab7a..1c1fb18 100644
--- a/test/cu_ght_core.c
+++ b/test/cu_ght_core.c
@@ -316,6 +316,7 @@ test_ght_node_unbuild_tree(void)
     int i;
     GhtNodeList *nodelist;
     GhtHash h[GHT_MAX_HASH_LENGTH];
+    memset(h, 0, GHT_MAX_HASH_LENGTH);
     
     ght_nodelist_new(32, &nodelist);
     ght_node_to_nodelist(root, nodelist, NULL, h);
-- 
1.8.4.5
openSUSE Build Service is sponsored by