c2: fix typo

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2022-07-17 18:15:09 +01:00
parent 5d79da6387
commit db6f11624b
No known key found for this signature in database
GPG Key ID: D3A4405BE6CC17F4
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}