summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2016-12-30 20:59:10 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2017-01-14 18:31:49 +0100
commitf4432e06555b0e8f250e6abc87cdf6e14320a52c (patch)
tree1cee912ba8b243acd9976ed7c63ef378896d15ce /libc
parent3cc17c2f8c5afcdc6589172bae0535e8606ac00f (diff)
fts: fix gcc compiler warning
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Diffstat (limited to 'libc')
-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;