mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-09-20 21:16:22 +02:00
I hear the smart kinds compile before committing. Then they never miss parens
svn:r3999
This commit is contained in:
parent
f696fd98bf
commit
7bf443e985
@ -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 */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user