From d38dfdd19a9bb3781347c003ab3f4620e28b01e7 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 1 Oct 2012 16:41:50 +0200 Subject: [PATCH] libxbps: unpack: before extracting re-set entry_pname. --- lib/package_unpack.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/package_unpack.c b/lib/package_unpack.c index 24b3548a..1718b0d0 100644 --- a/lib/package_unpack.c +++ b/lib/package_unpack.c @@ -448,12 +448,12 @@ unpack_archive(struct xbps_handle *xhp, archive_read_data_skip(ar); continue; } - /* - * Reset entry_pname again because if entry's pathname - * has been changed it will become a dangling pointer. - */ - entry_pname = archive_entry_pathname(entry); } + /* + * Reset entry_pname again because if entry's pathname + * has been changed it will become a dangling pointer. + */ + entry_pname = archive_entry_pathname(entry); /* * Extract entry from archive. */