From: Arthur Marble Date: Sun, 17 Aug 2014 22:34:04 +0000 (-0500) Subject: curl_xml plugin: Fixed tautological pointer comparison error. X-Git-Tag: collectd-5.3.2~5^2~8 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0afea60611f115a28b8ec331aba610e3038c1ef2;p=collectd.git curl_xml plugin: Fixed tautological pointer comparison error. Fixes: http://bugs.debian.org/758481 Signed-off-by: Florian Forster --- diff --git a/src/curl_xml.c b/src/curl_xml.c index e31e73d2..28b2ded0 100644 --- a/src/curl_xml.c +++ b/src/curl_xml.c @@ -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), "