summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2014-12-24 04:17:34 +0100
committerAllan McRae <allan@archlinux.org>2014-12-27 08:08:32 +0100
commit763fb3d9e7b82288f825f0038f2873eaec43ae08 (patch)
tree40410f631a7ceef3ba6c2452445cd0cd637f18ff /lib
parent804688ab6a036a80e082354c497ddc2d21ac2979 (diff)
downloadpacman-763fb3d9e7b82288f825f0038f2873eaec43ae08.tar.gz
pacman-763fb3d9e7b82288f825f0038f2873eaec43ae08.tar.xz
Remove logically dead code in _alpm_local_db_write
We can only get to cleanup: through fp being NULL due to fopen failing or normal execution when fclose is called. Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/be_local.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/libalpm/be_local.c b/lib/libalpm/be_local.c
index 0771aaf1..2454cdcb 100644
--- a/lib/libalpm/be_local.c
+++ b/lib/libalpm/be_local.c
@@ -1036,11 +1036,6 @@ int _alpm_local_db_write(alpm_db_t *db, alpm_pkg_t *info, alpm_dbinfrq_t inforeq
cleanup:
umask(oldmask);
-
- if(fp) {
- fclose(fp);
- }
-
return retval;
}