commit 60895834f011acb7ec3d6ef6e35f2daa23007ff9
Author:     Michael Forney <[email protected]>
AuthorDate: Sat Dec 28 22:35:49 2019 -0800
Commit:     Michael Forney <[email protected]>
CommitDate: Sat Dec 28 22:38:17 2019 -0800

    libutil/recurse: Use while-loop instead of for-loop with only condition

diff --git a/libutil/recurse.c b/libutil/recurse.c
index d2dc3ed..487faac 100644
--- a/libutil/recurse.c
+++ b/libutil/recurse.c
@@ -96,7 +96,7 @@ recurse(const char *path, void *data, struct recursor *r)
                if (!(r->flags & DIRFIRST))
                        r->fn(path, &st, data, r);
 
-               for (; r->hist; ) {
+               while (r->hist) {
                        h = r->hist;
                        r->hist = r->hist->prev;
                        free(h);

Reply via email to