Browse Source

r14294@Kushana: nickm | 2007-09-01 13:50:03 -0400
Oops. Initialize "changed" variable when removing obsolete guards.


svn:r11346

Nick Mathewson 17 years ago
parent
commit
eca3634f62
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/or/circuitbuild.c

+ 1 - 1
src/or/circuitbuild.c

@@ -2107,7 +2107,7 @@ entry_guard_free(entry_guard_t *e)
 static int
 remove_obsolete_entry_guards(void)
 {
-  int changed, i;
+  int changed = 0, i;
   for (i = 0; i < smartlist_len(entry_guards); ++i) {
     entry_guard_t *entry = smartlist_get(entry_guards, i);
     const char *ver = entry->chosen_by_version;