summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 27ee1da)
raw | patch | inline | side by side (parent: 27ee1da)
author | Florian Forster <octo@collectd.org> | |
Sun, 26 May 2013 15:22:48 +0000 (17:22 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Sun, 26 May 2013 15:23:13 +0000 (17:23 +0200) |
src/curl.c | patch | blob | history |
diff --git a/src/curl.c b/src/curl.c
index 3e5c578e4ef5b0de858f0d43d9ae6d9d8c91d06f..808603d535a76ef5ed81383997e0a32b113c8a30 100644 (file)
--- a/src/curl.c
+++ b/src/curl.c
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",