X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fcurl_xml.c;h=e0e4a62ff1d00bd5a1056b5869b658f43e5832b7;hb=21ab7512825cf8177d5eee5101344b45d0854610;hp=21e09252a376022eb9743ffdc39d2f4d86e37e4d;hpb=a5a33953ba9c8ca6a17531df5fa17181d59467c5;p=collectd.git diff --git a/src/curl_xml.c b/src/curl_xml.c index 21e09252..e0e4a62f 100644 --- a/src/curl_xml.c +++ b/src/curl_xml.c @@ -116,7 +116,7 @@ static size_t cx_curl_callback (void *buf, /* {{{ */ return (0); } - if (len == 0) + if (len == 0) return (len); if ((db->buffer_fill + len) >= db->buffer_size) @@ -641,7 +641,7 @@ static int cx_curl_perform (cx_t *db, CURL *curl) /* {{{ */ return (-1); } if (db->stats != NULL) - curl_stats_dispatch (db->stats, db->curl, cx_host (db), "curl_xml", db->instance, NULL); + curl_stats_dispatch (db->stats, db->curl, cx_host (db), "curl_xml", db->instance); curl_easy_getinfo(curl, CURLINFO_EFFECTIVE_URL, &url); curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &rc);