lib/package_unpack.c: remove unused var (CID 62731)

This commit is contained in:
Juan RP 2014-10-05 11:57:20 +02:00
parent c3dc804bc0
commit 89b8c61c47

View File

@ -109,12 +109,12 @@ unpack_archive(struct xbps_handle *xhp,
const char *file, *entry_pname, *transact, *tgtlnk; const char *file, *entry_pname, *transact, *tgtlnk;
char *pkgname, *dname, *buf, *buf2, *p, *p2; char *pkgname, *dname, *buf, *buf2, *p, *p2;
int ar_rv, rv, entry_type, flags; int ar_rv, rv, entry_type, flags;
bool preserve, update, conf_file, file_exists, skip_obsoletes; bool preserve, update, file_exists, skip_obsoletes;
bool skip_extract, force, xucd_stats; bool skip_extract, force, xucd_stats;
uid_t euid; uid_t euid;
binpkg_propsd = binpkg_filesd = pkg_filesd = NULL; binpkg_propsd = binpkg_filesd = pkg_filesd = NULL;
force = preserve = update = conf_file = file_exists = false; force = preserve = update = file_exists = false;
skip_obsoletes = xucd_stats = false; skip_obsoletes = xucd_stats = false;
ar_rv = rv = entry_type = flags = 0; ar_rv = rv = entry_type = flags = 0;
@ -296,7 +296,7 @@ unpack_archive(struct xbps_handle *xhp,
* doesn't match, in that case overwrite the file. * doesn't match, in that case overwrite the file.
* Otherwise skip extracting it. * Otherwise skip extracting it.
*/ */
conf_file = skip_extract = file_exists = false; skip_extract = file_exists = false;
if (lstat(entry_pname, &st) == 0) if (lstat(entry_pname, &st) == 0)
file_exists = true; file_exists = true;
/* /*
@ -330,7 +330,6 @@ unpack_archive(struct xbps_handle *xhp,
* dictionary. * dictionary.
*/ */
if (xbps_entry_is_a_conf_file(binpkg_filesd, buf)) { if (xbps_entry_is_a_conf_file(binpkg_filesd, buf)) {
conf_file = true;
if (xhp->unpack_cb != NULL) if (xhp->unpack_cb != NULL)
xucd.entry_is_conf = true; xucd.entry_is_conf = true;