From bd8f9528b0edae12bd534a70e7b31e4e40a45aab Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Thu, 21 Feb 2013 21:57:56 +0000 Subject: [PATCH] bosserver: Don't store result when renaming core file The bosserver doesn't do anything if the core file rename fails, so don't bother storing the result code. Caught by clang-analyzer Change-Id: I9b1b7d77404b0fd560c7735646e5afe1fbcc0752 Reviewed-on: http://gerrit.openafs.org/9232 Tested-by: BuildBot Reviewed-by: Chas Williams - CONTRACTOR Reviewed-by: Derrick Brashear Reviewed-by: Jeffrey Altman --- src/bozo/bnode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bozo/bnode.c b/src/bozo/bnode.c index 32d3f2d7a..6f8f99b14 100644 --- a/src/bozo/bnode.c +++ b/src/bozo/bnode.c @@ -151,7 +151,7 @@ SaveCore(struct bnode *abnode, struct bnode_proc TimeFields->tm_hour, TimeFields->tm_min, TimeFields->tm_sec); strcpy(tbuffer, FileName); #endif - code = rk_rename(corefile, tbuffer); + rk_rename(corefile, tbuffer); free(corefile); } -- 2.39.5