curl_json, curl_xml: Fix unitialized variable
authorRainer Müller <raimue@codingfarm.de>
Sun, 10 Nov 2013 02:39:22 +0000 (03:39 +0100)
committerFlorian Forster <octo@collectd.org>
Wed, 13 Nov 2013 18:55:57 +0000 (19:55 +0100)
commit8327ee64139eae2172f35cfdd7ee41998b806bcf
tree5a5c36e91794b6b7aa9acb4202d9619c0f996df0
parenta2983ff80886d944e67269c204c326621c1f42ea
curl_json, curl_xml: Fix unitialized variable

The variable url is used unintialized here. The code used to be the same
in both plugins, but diverged in 19808b44. The solution applied there
does not work correctly as the effective URL can only be queried after
performing the request. Instead, just use the original request URL.

Signed-off-by: Florian Forster <octo@collectd.org>
src/curl_json.c
src/curl_xml.c