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

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

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

diff --git a/test/cu_ght_attribute.c b/test/cu_ght_attribute.c
index 970f65e..dd38bb9 100644
--- a/test/cu_ght_attribute.c
+++ b/test/cu_ght_attribute.c
@@ -201,6 +201,7 @@ test_ght_unbuild_tree_with_attributes(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