dload: make sure we never print a bogus error buffer
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
991bfb7cbf
commit
22b1338390
1 changed files with 2 additions and 0 deletions
|
@ -180,6 +180,8 @@ static int curl_download_internal(const char *url, const char *localpath,
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
error_buffer[0] = '\0';
|
||||||
|
|
||||||
/* the curl_easy handle is initialized with the alpm handle, so we only need
|
/* the curl_easy handle is initialized with the alpm handle, so we only need
|
||||||
* to reset the curl handle set parameters for each time it's used. */
|
* to reset the curl handle set parameters for each time it's used. */
|
||||||
curl_easy_reset(handle->curl);
|
curl_easy_reset(handle->curl);
|
||||||
|
|
Loading…
Add table
Reference in a new issue