1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-12 15:06:44 +02:00

(fts_open): Put new (2006-01-04) maxarglen declaration and uses in their

own block, so pre-c99 compilers don't object.
This commit is contained in:
Jim Meyering
2006-01-11 16:29:35 +00:00
parent f84dc6ccfc
commit 08e4a9a00e

View File

@@ -242,9 +242,11 @@ fts_open (char * const *argv,
#ifndef MAXPATHLEN
# define MAXPATHLEN 1024
#endif
size_t maxarglen = fts_maxarglen(argv);
if (! fts_palloc(sp, MAX(maxarglen, MAXPATHLEN)))
goto mem1;
{
size_t maxarglen = fts_maxarglen(argv);
if (! fts_palloc(sp, MAX(maxarglen, MAXPATHLEN)))
goto mem1;
}
/* Allocate/initialize root's parent. */
if ((parent = fts_alloc(sp, "", 0)) == NULL)