summaryrefslogtreecommitdiff
path: root/libc/misc/fts
diff options
context:
space:
mode:
Diffstat (limited to 'libc/misc/fts')
-rw-r--r--libc/misc/fts/fts.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/misc/fts/fts.c b/libc/misc/fts/fts.c
index d5ebcbc5e..62ed6af2a 100644
--- a/libc/misc/fts/fts.c
+++ b/libc/misc/fts/fts.c
@@ -84,6 +84,7 @@ FTS *
fts_open( char * const *argv, register int options,
int (*compar) (const FTSENT **, const FTSENT **))
{
+ size_t maxarglen;
register FTS *sp;
register FTSENT *p, *root;
register int nitems;
@@ -114,7 +115,7 @@ fts_open( char * const *argv, register int options,
#ifndef MAXPATHLEN
#define MAXPATHLEN 1024
#endif
- size_t maxarglen = fts_maxarglen(argv);
+ maxarglen = fts_maxarglen(argv);
if (fts_palloc(sp, MAX(maxarglen, MAXPATHLEN)))
goto mem1;