drh / lcc

The lcc retargetable ANSI C compiler

Home Page:https://drh.github.io/lcc/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[PATCH] Cleanup duplicate statement in for loop in file src/profio.c

orbitcowboy opened this issue · comments

Please review the attached patch, which removes a duplicate statement in a for loop in file src/profio.c.

Probably this was a copy&paste issue.

Best regards and many thanks

Martin Ettl

diff --git a/src/profio.c b/src/profio.c
index 6cae414..87fc175 100755
--- a/src/profio.c
+++ b/src/profio.c
@@ -60,7 +60,7 @@ static void acaller(char *caller, char *file, int x, int y, in
                q->y = y;
                q->count = 0;
                for (r = &callee->callers; *r && (strcmp(q->name, (*r)->name) > 
-                       || strcmp(q->file, (*r)->file) > 0 || q->y > (*r)->y || 
+                       || strcmp(q->file, (*r)->file) > 0 || q->y > (*r)->y); r
                        ;
                q->link = *r;
                *r = q;

Fixed. Thanks.