diff options
author | Ulrich Drepper <drepper@redhat.com> | 2010-03-27 05:48:17 -0700 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2010-03-27 05:48:17 -0700 |
commit | a5f3b0f830920ae31e24cad8fe5d877bba556764 (patch) | |
tree | c9e1a650c05225d04075c0a8ec15182ff67f807e | |
parent | 463ed2f0bee56eb61a83b401a0134a4b8955178a (diff) | |
download | glibc-a5f3b0f830920ae31e24cad8fe5d877bba556764.zip glibc-a5f3b0f830920ae31e24cad8fe5d877bba556764.tar.gz glibc-a5f3b0f830920ae31e24cad8fe5d877bba556764.tar.bz2 |
Fix one more issue with the glob patch.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | posix/glob.c | 4 |
2 files changed, 6 insertions, 2 deletions
@@ -1,3 +1,7 @@ +2010-03-27 Ulrich Drepper <drepper@redhat.com> + + * posix/glob.c (glob): Initialize oldcount early, too. + 2010-03-26 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/i386/fcntl.c: Define miss_F_GETOWN_EX diff --git a/posix/glob.c b/posix/glob.c index 3ae055d..e410d50 100644 --- a/posix/glob.c +++ b/posix/glob.c @@ -436,6 +436,8 @@ glob (pattern, flags, errfunc, pglob) } } + oldcount = pglob->gl_pathc + pglob->gl_offs; + /* Find the filename. */ filename = strrchr (pattern, '/'); #if defined __MSDOS__ || defined WINDOWS32 @@ -553,8 +555,6 @@ glob (pattern, flags, errfunc, pglob) } } - oldcount = pglob->gl_pathc + pglob->gl_offs; - #ifndef VMS if ((flags & (GLOB_TILDE|GLOB_TILDE_CHECK)) && dirname[0] == '~') { |