From db6f11624b7752a3067c051bd1fa0dfa5deb20e4 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Sun, 17 Jul 2022 18:15:09 +0100 Subject: [PATCH] c2: fix typo Signed-off-by: Yuxuan Shui --- src/c2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/c2.c b/src/c2.c index 24e62f0..e557f29 100644 --- a/src/c2.c +++ b/src/c2.c @@ -1681,7 +1681,7 @@ bool c2_match(session_t *ps, const struct managed_win *w, const c2_lptr_t *condl /// /// Returns whether the iteration was stopped early. bool c2_list_foreach(const c2_lptr_t *condlist, c2_list_foreach_cb_t cb, void *data) { - for (auto i = condlist; i; condlist = condlist->next) { + for (auto i = condlist; i; i = i->next) { if (cb(i, data)) { return true; }