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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user