From: Florian Forster Date: Sat, 1 Jun 2013 07:23:04 +0000 (+0200) Subject: curl plugin: Fix compiler warning. X-Git-Tag: collectd-5.4.0~31^2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=14fcf8a4f648e6ed2ff5f2bc8d4f70057702b17e;p=collectd.git curl plugin: Fix compiler warning. The compiler thinks the "start" variable may be used uninitialized. --- diff --git a/src/curl.c b/src/curl.c index 7d313077..280e61c8 100644 --- a/src/curl.c +++ b/src/curl.c @@ -630,7 +630,7 @@ static int cc_read_page (web_page_t *wp) /* {{{ */ { web_match_t *wm; int status; - cdtime_t start; + cdtime_t start = 0; if (wp->response_time) start = cdtime ();