curl_xml plugin: Don't use a hyphen to separate instance prefix and value.
authorFlorian Forster <octo@huhu.verplant.org>
Mon, 11 Jan 2010 15:52:48 +0000 (16:52 +0100)
committerFlorian Forster <octo@huhu.verplant.org>
Mon, 11 Jan 2010 15:52:48 +0000 (16:52 +0100)
This way the plugin behaves more like the SNMP plugin.

src/curl_xml.c

index 74ef2e8..cc88c93 100644 (file)
@@ -402,7 +402,7 @@ static int cx_handle_instance_xpath (xmlXPathContextPtr xpath_ctx, /* {{{ */
   if (xpath->instance_prefix != NULL)
   {
     if (instance_node != NULL)
-      ssnprintf (vl->type_instance, sizeof (vl->type_instance),"%s-%s",
+      ssnprintf (vl->type_instance, sizeof (vl->type_instance),"%s%s",
           xpath->instance_prefix, (char *) xmlNodeGetContent(instance_node->nodeTab[0]));
     else
       sstrncpy (vl->type_instance, xpath->instance_prefix,