From 22b133839088c88801b1f24455e41425a16de372 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 4 May 2011 16:29:41 -0500 Subject: dload: make sure we never print a bogus error buffer Signed-off-by: Dan McGee --- lib/libalpm/dload.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c index 1395476a..d024c736 100644 --- a/lib/libalpm/dload.c +++ b/lib/libalpm/dload.c @@ -180,6 +180,8 @@ static int curl_download_internal(const char *url, const char *localpath, goto cleanup; } + error_buffer[0] = '\0'; + /* 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. */ curl_easy_reset(handle->curl); -- cgit v1.2.3-70-g09d2