From 7bf443e9854d3958b868e8430cd1f6ca016f2a97 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sun, 3 Apr 2005 06:00:00 +0000 Subject: [PATCH] I hear the smart kinds compile before committing. Then they never miss parens svn:r3999 --- src/common/container.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/container.c b/src/common/container.c index 9b63911301..f892cd6773 100644 --- a/src/common/container.c +++ b/src/common/container.c @@ -127,7 +127,7 @@ smartlist_string_remove(smartlist_t *sl, const char *element) tor_assert(sl); tor_assert(element); for (i = 0; i < sl->num_used; ++i) { - if (!strcmp(element, sl->list[i]) { + if (!strcmp(element, sl->list[i])) { sl->list[i] = sl->list[--sl->num_used]; /* swap with the end */ i--; /* so we process the new i'th element */ }