From: Bruno Haible Date: Tue, 24 Oct 2006 13:31:50 +0000 (+0000) Subject: (fts_build): Move variable declaration, for C89 compliance. X-Git-Tag: cvs-readonly~1663 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=7c17dff3facb761377c5138c55faa2460d77e299;p=gnulib.git (fts_build): Move variable declaration, for C89 compliance. --- 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,