diff options
author | Roger Dingledine <arma@torproject.org> | 2008-02-19 22:25:20 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2008-02-19 22:25:20 +0000 |
commit | 810bfe970ced4c09c819db3ebac9aaa786dc5ba5 (patch) | |
tree | a375f3a27973036c41f0d707be2f815f2b722712 /src/or | |
parent | 749735215bd8283fe6b45d8bcf286b33618089a9 (diff) | |
download | tor-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/or')
-rw-r--r-- | src/or/config.c | 2 |
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); |