_cache_mtree_open: remove unused variable

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Allan McRae 2024-01-25 15:29:07 +10:00
parent dfee773364
commit 845dadf183

View file

@ -250,7 +250,6 @@ static int _cache_changelog_close(const alpm_pkg_t UNUSED *pkg, void *fp)
*/ */
static struct archive *_cache_mtree_open(alpm_pkg_t *pkg) static struct archive *_cache_mtree_open(alpm_pkg_t *pkg)
{ {
int r;
struct archive *mtree; struct archive *mtree;
alpm_db_t *db = alpm_pkg_get_db(pkg); alpm_db_t *db = alpm_pkg_get_db(pkg);
@ -268,7 +267,7 @@ static struct archive *_cache_mtree_open(alpm_pkg_t *pkg)
_alpm_archive_read_support_filter_all(mtree); _alpm_archive_read_support_filter_all(mtree);
archive_read_support_format_mtree(mtree); archive_read_support_format_mtree(mtree);
if((r = _alpm_archive_read_open_file(mtree, mtfile, ALPM_BUFFER_SIZE))) { if(_alpm_archive_read_open_file(mtree, mtfile, ALPM_BUFFER_SIZE)) {
_alpm_log(pkg->handle, ALPM_LOG_ERROR, _("error while reading file %s: %s\n"), _alpm_log(pkg->handle, ALPM_LOG_ERROR, _("error while reading file %s: %s\n"),
mtfile, archive_error_string(mtree)); mtfile, archive_error_string(mtree));
_alpm_archive_read_free(mtree); _alpm_archive_read_free(mtree);