projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d5216f
)
curl_xml: Removed excessive operation
author
Pavel Rochnyack
<pavel2000@ngs.ru>
Sat, 30 Sep 2017 11:10:39 +0000
(18:10 +0700)
committer
Pavel Rochnyack
<pavel2000@ngs.ru>
Sat, 30 Sep 2017 11:58:45 +0000
(18:58 +0700)
src/curl_xml.c
patch
|
blob
|
history
diff --git
a/src/curl_xml.c
b/src/curl_xml.c
index
c24b63e
..
d0b32cd
100644
(file)
--- a/
src/curl_xml.c
+++ b/
src/curl_xml.c
@@
-383,8
+383,6
@@
static int cx_handle_all_value_xpaths(xmlXPathContextPtr xpath_ctx, /* {{{ */
static int cx_handle_instance_xpath(xmlXPathContextPtr xpath_ctx, /* {{{ */
cx_xpath_t *xpath, value_list_t *vl) {
- memset(vl->type_instance, 0, sizeof(vl->type_instance));
-
/* Handle type instance */
if (xpath->instance != NULL) {
char *node_value = cx_get_text_node_value(xpath_ctx, xpath->instance,