From 952b55fbdb52b8568a57b7f061056e15ef8dfffa Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 28 May 2024 02:00:14 -0400 Subject: Fix variable shadowing --- match.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'match.c') diff --git a/match.c b/match.c index 6336479..9dbd789 100644 --- a/match.c +++ b/match.c @@ -97,7 +97,7 @@ static match_t *clone_match(match_t *m) for (int i = 0; m->children[i]; i++) { if (nchildren+1 >= child_cap) { ret->children = grow(ret->children, child_cap += 5); - for (size_t i = nchildren; i < child_cap; i++) ret->children[i] = NULL; + for (size_t j = nchildren; j < child_cap; j++) ret->children[j] = NULL; } ret->children[nchildren++] = clone_match(m->children[i]); } -- cgit v1.2.3