Code

curl_xml: Removed excessive operation
authorPavel Rochnyack <pavel2000@ngs.ru>
Sat, 30 Sep 2017 11:10:39 +0000 (18:10 +0700)
committerPavel Rochnyack <pavel2000@ngs.ru>
Sat, 30 Sep 2017 11:58:45 +0000 (18:58 +0700)
src/curl_xml.c

index c24b63eb2d1978e51874ec08e427b0e2f7f05f86..d0b32cdac715a94d246199ebbfd0f3d9212dd1dd 100644 (file)
@@ -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,