diff options
author | Allan McRae <allan@archlinux.org> | 2014-12-24 13:17:34 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2014-12-27 17:08:32 +1000 |
commit | 763fb3d9e7b82288f825f0038f2873eaec43ae08 (patch) | |
tree | 40410f631a7ceef3ba6c2452445cd0cd637f18ff /lib/libalpm | |
parent | 804688ab6a036a80e082354c497ddc2d21ac2979 (diff) |
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/libalpm')
-rw-r--r-- | lib/libalpm/be_local.c | 5 |
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; } |