Browse Source

robustness fix in fillfron()

This makes it possible to call it several times in a row.
Quentin Carbonneaux 8 years ago
parent
commit
1a76fd11f5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      cfg.c

+ 2 - 0
cfg.c

@@ -219,6 +219,8 @@ fillfron(Fn *fn)
 {
 	Blk *a, *b;
 
+	for (b=fn->start; b; b=b->link)
+		b->nfron = 0;
 	for (b=fn->start; b; b=b->link) {
 		if (b->s1)
 			for (a=b; !sdom(a, b->s1); a=a->idom)