summaryrefslogtreecommitdiffstats
path: root/lib/libalpm
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-05-04 23:29:41 +0200
committerDan McGee <dan@archlinux.org>2011-05-04 23:29:41 +0200
commit22b133839088c88801b1f24455e41425a16de372 (patch)
tree7bfbc7399b8fcea4f493a751862ef06d50ece93b /lib/libalpm
parent991bfb7cbfaf68749bfca181fcca9319a73f579e (diff)
downloadpacman-22b133839088c88801b1f24455e41425a16de372.tar.gz
pacman-22b133839088c88801b1f24455e41425a16de372.tar.xz
dload: make sure we never print a bogus error buffer
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/dload.c2
1 files changed, 2 insertions, 0 deletions
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);