From 763fb3d9e7b82288f825f0038f2873eaec43ae08 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Wed, 24 Dec 2014 13:17:34 +1000 Subject: 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 --- lib/libalpm/be_local.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'lib/libalpm') 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; } -- cgit v1.2.3