瀏覽代碼

I hear the smart kinds compile before committing. Then they never miss parens

svn:r3999
Nick Mathewson 20 年之前
父節點
當前提交
7bf443e985
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/common/container.c

+ 1 - 1
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 */
     }