index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Allan McRae <allan@archlinux.org> | 2012-02-11 16:17:59 +1000 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-02-13 10:03:05 -0600 |
commit | 7a3f59cd66a4f70641b863ebaaf52674b921bf3c (patch) | |
tree | 7c1435bb6067545353e949a811983ec7b972c88f | |
parent | 8741551dc94d506df72b5ae8453bca1e4d50dbab (diff) |
-rw-r--r-- | lib/libalpm/util.c | 1 |
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c index 11285896..59861242 100644 --- a/lib/libalpm/util.c +++ b/lib/libalpm/util.c @@ -227,6 +227,7 @@ int _alpm_open_archive(alpm_handle_t *handle, const char *path, { int fd; size_t bufsize = ALPM_BUFFER_SIZE; + errno = 0; if((*archive = archive_read_new()) == NULL) { RET_ERR(handle, ALPM_ERR_LIBARCHIVE, -1); |