curl plugin: Fix compiler warning.
authorFlorian Forster <octo@collectd.org>
Sat, 1 Jun 2013 07:23:04 +0000 (09:23 +0200)
committerFlorian Forster <octo@collectd.org>
Sat, 1 Jun 2013 07:23:04 +0000 (09:23 +0200)
The compiler thinks the "start" variable may be used uninitialized.

src/curl.c

index 7d31307..280e61c 100644 (file)
@@ -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 ();