r14294@Kushana: nickm | 2007-09-01 13:50:03 -0400

Oops. Initialize "changed" variable when removing obsolete guards.


svn:r11346
This commit is contained in:
Nick Mathewson 2007-09-01 17:50:29 +00:00
parent 10bd4f6ad6
commit eca3634f62

View File

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