From: Ulrich Drepper Date: Sat, 4 Aug 2007 17:21:20 +0000 (+0000) Subject: * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR X-Git-Tag: cvs/fedora-glibc-20070804T2027~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8ccd8e3a2a90e1478b856aee8fd18a2a3852682;p=thirdparty%2Fglibc.git * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR elements during initialization. --- diff --git a/ChangeLog b/ChangeLog index 913327257ed..abf7d490b99 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2007-08-04 Ulrich Drepper + * sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR + elements during initialization. + * po/pl.po: Updated translation from translation team. * po/tr.po: Likewise. diff --git a/sysdeps/unix/opendir.c b/sysdeps/unix/opendir.c index 34f5b719d34..0a116247d2f 100644 --- a/sysdeps/unix/opendir.c +++ b/sysdeps/unix/opendir.c @@ -194,11 +194,11 @@ __alloc_dir (int fd, bool close_fd, const struct stat64 *statp) return NULL; } - dirp->allocation = allocation; + dirp->fd = fd; #ifndef NOT_IN_libc __libc_lock_init (dirp->lock); #endif - dirp->fd = fd; + dirp->allocation = allocation; dirp->size = 0; dirp->offset = 0; dirp->filepos = 0;