Code

curl_json, curl_xml: Fix unitialized variable
[collectd.git] / src / curl_xml.c
index 5adaf067a157e44220655adb79855c6fee0d3b26..5d14a1d9079810a68891697f1d10bbbffde68afe 100644 (file)
@@ -608,6 +608,7 @@ static int cx_curl_perform (cx_t *db, CURL *curl) /* {{{ */
   long rc;
   char *ptr;
   char *url;
+  url = db->url;
 
   db->buffer_fill = 0; 
   status = curl_easy_perform (curl);