Commit 810bfe97 authored by Roger Dingledine's avatar Roger Dingledine
Browse files

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

potential bug reported by veracode.


svn:r13590
parent 74973521
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);