summaryrefslogtreecommitdiffstats
path: root/pcilib
diff options
context:
space:
mode:
authorVasilii Chernov <vchernov@inr.ru>2016-02-25 09:22:31 +0100
committerVasilii Chernov <vchernov@inr.ru>2016-02-25 09:22:31 +0100
commited7a7ff66c64cc2e164070865306e7d79652063a (patch)
tree748bbb139a3cfe542a2662fe293f9edf3e4ebc00 /pcilib
parentb0a034e6ef4a958235a56ebde0831c0f30a84d30 (diff)
downloadpcitool-ed7a7ff66c64cc2e164070865306e7d79652063a.tar.gz
pcitool-ed7a7ff66c64cc2e164070865306e7d79652063a.tar.bz2
pcitool-ed7a7ff66c64cc2e164070865306e7d79652063a.tar.xz
pcitool-ed7a7ff66c64cc2e164070865306e7d79652063a.zip
Set value description content to NULL in pcilib_xml_parse_value_name
Diffstat (limited to 'pcilib')
-rw-r--r--pcilib/xml.c2
1 files changed, 2 insertions, 0 deletions
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;