Code

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 7d3130773944f79ccee35c3fb6074c1cdbe3fe52..280e61c8649ae70a0f2bc99658aeed5659e71e5a 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 ();