mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03: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:
1 parent
f84dc6ccfc
commit
08e4a9a00e
1 file changed
+5
-3
@@ -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