From ed7a7ff66c64cc2e164070865306e7d79652063a Mon Sep 17 00:00:00 2001
From: Vasilii Chernov <vchernov@inr.ru>
Date: Thu, 25 Feb 2016 09:22:31 +0100
Subject: Set value description content to NULL in pcilib_xml_parse_value_name

---
 pcilib/xml.c | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'pcilib/xml.c')

diff --git a/pcilib/xml.c b/pcilib/xml.c
index fd12636..0463a40 100644
--- a/pcilib/xml.c
+++ b/pcilib/xml.c
@@ -615,6 +615,8 @@ static int pcilib_xml_parse_value_name(pcilib_t *ctx, xmlXPathContextPtr xpath,
 
     int min_set = 0, max_set = 0;
     pcilib_register_value_t val;
+
+    memset(desc, 0, sizeof(pcilib_register_value_name_t));
     
     for (cur = node->properties; cur != NULL; cur = cur->next) {
         if(!cur->children) continue;
-- 
cgit v1.2.3