projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c9ac11
)
curl_xml plugin: Clear type_instance if it is not set.
author
Florian Forster
<octo@huhu.verplant.org>
Mon, 11 Jan 2010 14:44:14 +0000
(15:44 +0100)
committer
Florian Forster
<octo@huhu.verplant.org>
Mon, 11 Jan 2010 14:44:14 +0000
(15:44 +0100)
src/curl_xml.c
patch
|
blob
|
history
diff --git
a/src/curl_xml.c
b/src/curl_xml.c
index
589d96f
..
d7b80b2
100644
(file)
--- a/
src/curl_xml.c
+++ b/
src/curl_xml.c
@@
-416,6
+416,8
@@
static int cx_submit_xpath_values (char *plugin_instance, /* {{{ */
if (instance_node != NULL)
sstrncpy (vl.type_instance, (char *) xmlNodeGetContent(instance_node->nodeTab[0]),
sizeof (vl.type_instance));
+ else
+ vl.type_instance[0] = 0;
}
/* free up object */