aboutsummaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <[email protected]>2024-04-04 21:56:50 +0200
committerQuentin Carbonneaux <[email protected]>2024-04-04 21:56:50 +0200
commitdc3f7d7c4a7a5c74f2de1c1de051057050066393 (patch)
treee94d7db2ad77347341fe5f11bc270552db2fec19 /parse.c
parentde5ced474d17b979666023ba2980493069d3401e (diff)
fix accidentally noop loop
Credit goes to Roland Paterson-Jones for spotting this bug.
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.c b/parse.c
index 20303e9..6aca4ad 100644
--- a/parse.c
+++ b/parse.c
@@ -920,7 +920,7 @@ parsefn(Lnk *lnk)
curf->nmem = 0;
curf->nblk = nblk;
curf->rpo = 0;
- for (b=0; b; b=b->link)
+ for (b=curf->start; b; b=b->link)
b->dlink = 0; /* was trashed by findblk() */
for (i=0; i<BMask+1; ++i)
blkh[i] = 0;