]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
authorUlrich Drepper <drepper@redhat.com>
Sat, 4 Aug 2007 17:21:20 +0000 (17:21 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 4 Aug 2007 17:21:20 +0000 (17:21 +0000)
elements during initialization.

ChangeLog
sysdeps/unix/opendir.c

index 913327257edbb056996af8f4121858bf1ed6eeb7..abf7d490b9906989284645505793cafa87bbb8c8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2007-08-04  Ulrich Drepper  <drepper@redhat.com>
 
+       * 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.
 
index 34f5b719d34421aab44e3d3955804e342b7c98f0..0a116247d2fb604a87a36aa5e7fd5a68b1c1fae6 100644 (file)
@@ -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;