From 810bfe970ced4c09c819db3ebac9aaa786dc5ba5 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Tue, 19 Feb 2008 22:25:20 +0000 Subject: [PATCH] make explicit that we don't care if a rename() call fails. potential bug reported by veracode. svn:r13590 --- src/or/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/or/config.c b/src/or/config.c index 4d97b9b1bd..36dc9dfeda 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -4753,7 +4753,7 @@ or_state_load(void) log_warn(LD_BUG, "Unable to parse state in \"%s\". Moving it aside " "to \"%s\". This could be a bug in Tor; please tell " "the developers.", fname, fname2); - rename(fname, fname2); + (int)rename(fname, fname2); } tor_free(fname2); tor_free(contents);