From e97319e259ab48257bdde1ba4e4bbfab9548579f Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Sun, 24 Jun 2018 14:32:15 -0400 Subject: [PATCH] libext2fs: explicitly ignore a possible unlink failure in ext2fs_free_icount There's not much we can do if the unlink of the tdb file fails, and we don't want to print a warning message from a library. Fixes-Coverity-Bug: 1308364 Signed-off-by: Theodore Ts'o --- lib/ext2fs/icount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ext2fs/icount.c b/lib/ext2fs/icount.c index d7de19f..888a90b 100644 --- a/lib/ext2fs/icount.c +++ b/lib/ext2fs/icount.c @@ -89,7 +89,7 @@ void ext2fs_free_icount(ext2_icount_t icount) if (icount->tdb) tdb_close(icount->tdb); if (icount->tdb_fn) { - unlink(icount->tdb_fn); + (void) unlink(icount->tdb_fn); free(icount->tdb_fn); } #endif -- 1.8.3.1