aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-04-03 06:00:00 +0000
committerNick Mathewson <nickm@torproject.org>2005-04-03 06:00:00 +0000
commit7bf443e9854d3958b868e8430cd1f6ca016f2a97 (patch)
tree8ae76ccda9fe16595370e6cee80e3ac5e4673839 /src/common
parentf696fd98bfe80fbf76d9093b42fcb14b06b04f26 (diff)
downloadtor-7bf443e9854d3958b868e8430cd1f6ca016f2a97.tar
tor-7bf443e9854d3958b868e8430cd1f6ca016f2a97.tar.gz
I hear the smart kinds compile before committing. Then they never miss parens
svn:r3999
Diffstat (limited to 'src/common')
-rw-r--r--src/common/container.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/container.c b/src/common/container.c
index 9b6391130..f892cd677 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 */
}