Code

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 74ef2e8e6afc2f289dfb5ffd02d553b4ecba5666..cc88c93480984dcfce343a412526c1546ae7965d 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,