curl plugin: Fix compile issue (long vs. long*).
authorFlorian Forster <octo@collectd.org>
Sun, 26 May 2013 15:22:48 +0000 (17:22 +0200)
committerFlorian Forster <octo@collectd.org>
Sun, 26 May 2013 15:23:13 +0000 (17:23 +0200)
src/curl.c

index 3e5c578..808603d 100644 (file)
@@ -676,7 +676,7 @@ static int cc_read_page (web_page_t *wp) /* {{{ */
 
   if(wp->response_code)
   {
-    long *response_code;
+    long response_code = 0;
     status = curl_easy_getinfo(wp->curl, CURLINFO_RESPONSE_CODE, &response_code);
     if(status != CURLE_OK) {
       ERROR ("curl plugin: curl_easy_getinfo failed with staus %i: %s",