diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-05-28 02:00:14 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-05-28 02:00:14 -0400 |
| commit | 952b55fbdb52b8568a57b7f061056e15ef8dfffa (patch) | |
| tree | f5b04bbdb40e5dd08738a62c598b88ffdd4ca138 /match.c | |
| parent | 31649edc7777e9cf6098cc7bf780f2f963b26d33 (diff) | |
Fix variable shadowing
Diffstat (limited to 'match.c')
| -rw-r--r-- | match.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]); } |
