make explicit that we don't care if a rename() call fails.

potential bug reported by veracode.


svn:r13590
This commit is contained in:
Roger Dingledine 2008-02-19 22:25:20 +00:00
parent 749735215b
commit 810bfe970c

View File

@ -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);