Code

dbi plugin: malloc + memset -> calloc
[collectd.git] / src / bind.c
index 6eac159cbcf78b1f36651aa7468f389a9baf74a8..b9731eeee0d89522cd3375239f07e0a4c1c50a96 100644 (file)
@@ -1758,7 +1758,7 @@ static int bind_init (void) /* {{{ */
   curl_easy_setopt (curl, CURLOPT_MAXREDIRS, 50L);
 #ifdef HAVE_CURLOPT_TIMEOUT_MS
   curl_easy_setopt (curl, CURLOPT_TIMEOUT_MS, (timeout >= 0) ?
-      (long) timeout : CDTIME_T_TO_MS(plugin_get_interval()));
+      (long) timeout : (long) CDTIME_T_TO_MS(plugin_get_interval()));
 #endif