diff options
Diffstat (limited to 'posix')
-rw-r--r-- | posix/glob.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/posix/glob.c b/posix/glob.c index e410d50..6df083a 100644 --- a/posix/glob.c +++ b/posix/glob.c @@ -1042,9 +1042,9 @@ glob (pattern, flags, errfunc, pglob) : (__stat64 (pglob->gl_pathv[i], &st64) == 0 && S_ISDIR (st64.st_mode)))) { - size_t len = strlen (pglob->gl_pathv[i]) + 2; + size_t len = strlen (pglob->gl_pathv[i]) + 2; char *new = realloc (pglob->gl_pathv[i], len); - if (new == NULL) + if (new == NULL) { globfree (pglob); pglob->gl_pathc = 0; |