From 7c17dff3facb761377c5138c55faa2460d77e299 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 24 Oct 2006 13:31:50 +0000 Subject: [PATCH] (fts_build): Move variable declaration, for C89 compliance. --- lib/fts.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/fts.c b/lib/fts.c index fc6bbd37b..c15f04c8f 100644 --- a/lib/fts.c +++ b/lib/fts.c @@ -1008,6 +1008,8 @@ fts_build (register FTS *sp, int type) /* Read the directory, attaching each entry to the `link' pointer. */ doadjust = false; for (head = tail = NULL, nitems = 0; dirp && (dp = readdir(dirp));) { + bool is_dir; + if (!ISSET(FTS_SEEDOT) && ISDOT(dp->d_name)) continue; @@ -1073,7 +1075,6 @@ mem1: saved_errno = errno; } else p->fts_accpath = p->fts_name; - bool is_dir; if (sp->fts_compar == NULL || ISSET(FTS_DEFER_STAT)) { /* Record what fts_read will have to do with this entry. In many cases, it will simply fts_stat it, -- 2.11.0