Code

curl_xml plugin: Fixed tautological pointer comparison error.
authorArthur Marble <arthur@info9.net>
Sun, 17 Aug 2014 22:34:04 +0000 (17:34 -0500)
committerFlorian Forster <octo@collectd.org>
Mon, 18 Aug 2014 07:30:15 +0000 (09:30 +0200)
Fixes: http://bugs.debian.org/758481
Signed-off-by: Florian Forster <octo@collectd.org>
src/curl_xml.c

index e31e73d284f06d1a078d00211ef9f9a41b3698ef..28b2ded0104b79a6027119db8fe4d908a4474972 100644 (file)
@@ -344,7 +344,7 @@ static int cx_handle_instance_xpath (xmlXPathContextPtr xpath_ctx, /* {{{ */
   /* If the base xpath returns more than one block, the result is assumed to be
    * a table. The `Instnce' option is not optional in this case. Check for the
    * condition and inform the user. */
-  if (is_table && (vl->type_instance == NULL))
+  if (is_table)
   {
     WARNING ("curl_xml plugin: "
         "Base-XPath %s is a table (more than one result was returned), "