summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2008-02-19 22:25:20 +0000
committerRoger Dingledine <arma@torproject.org>2008-02-19 22:25:20 +0000
commit810bfe970ced4c09c819db3ebac9aaa786dc5ba5 (patch)
treea375f3a27973036c41f0d707be2f815f2b722712 /src
parent749735215bd8283fe6b45d8bcf286b33618089a9 (diff)
downloadtor-810bfe970ced4c09c819db3ebac9aaa786dc5ba5.tar.gz
tor-810bfe970ced4c09c819db3ebac9aaa786dc5ba5.zip
make explicit that we don't care if a rename() call fails.
potential bug reported by veracode. svn:r13590
Diffstat (limited to 'src')
-rw-r--r--src/or/config.c2
1 files changed, 1 insertions, 1 deletions
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);