{
static char credentials[1024];
+ if (url == NULL)
+ return (0);
+
if (curl != NULL)
{
curl_easy_cleanup (curl);
curl_easy_setopt (curl, CURLOPT_USERPWD, credentials);
}
- if (url != NULL)
- {
- curl_easy_setopt (curl, CURLOPT_URL, url);
- }
+ curl_easy_setopt (curl, CURLOPT_URL, url);
if (cacert != NULL)
{