X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fbind.c;h=dd49cb2220709ed8dc5b760928d21d013cdcb871;hb=0532336600cf2abe1d25af8fbf5ad3cf3b6b31e0;hp=c5327f14b8aaeed5ad687705e6b14e69ca0b675e;hpb=4c30f47794046ec7c8dfb5e1d41d03633032bac7;p=collectd.git diff --git a/src/bind.c b/src/bind.c index c5327f14..dd49cb22 100644 --- a/src/bind.c +++ b/src/bind.c @@ -1709,6 +1709,7 @@ static int bind_config (oconfig_item_t *ci) /* {{{ */ return (-1); } + sfree (url); url = strdup (child->values[0].value.string); } else if (strcasecmp ("OpCodes", child->key) == 0) bind_config_set_bool ("OpCodes", &global_opcodes, child); @@ -1759,7 +1760,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