Browse Source

make explicit that we don't care if a rename() call fails.
potential bug reported by veracode.


svn:r13590

Roger Dingledine 17 years ago
parent
commit
810bfe970c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/or/config.c

+ 1 - 1
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 "
       log_warn(LD_BUG, "Unable to parse state in \"%s\". Moving it aside "
                "to \"%s\".  This could be a bug in Tor; please tell "
                "to \"%s\".  This could be a bug in Tor; please tell "
                "the developers.", fname, fname2);
                "the developers.", fname, fname2);
-      rename(fname, fname2);
+      (int)rename(fname, fname2);
     }
     }
     tor_free(fname2);
     tor_free(fname2);
     tor_free(contents);
     tor_free(contents);