From eca3634f62d3739c83b13a90d6dbb3fcfd3600cf Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sat, 1 Sep 2007 17:50:29 +0000 Subject: [PATCH] r14294@Kushana: nickm | 2007-09-01 13:50:03 -0400 Oops. Initialize "changed" variable when removing obsolete guards. svn:r11346 --- src/or/circuitbuild.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index 4b14e16f63..2f88c85e88 100644 --- a/src/or/circuitbuild.c +++ b/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;