aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-08-04 17:21:20 +0000
committerUlrich Drepper <drepper@redhat.com>2007-08-04 17:21:20 +0000
commitc8ccd8e3a2a90e1478b856aee8fd18a2a3852682 (patch)
treee054ad5e7cf2e12e3eeaf006341314eb11ae2f1f /sysdeps/unix
parent220ae3ef971ce99db28556e839448b63829b4737 (diff)
downloadglibc-c8ccd8e3a2a90e1478b856aee8fd18a2a3852682.tar
glibc-c8ccd8e3a2a90e1478b856aee8fd18a2a3852682.tar.gz
glibc-c8ccd8e3a2a90e1478b856aee8fd18a2a3852682.tar.bz2
glibc-c8ccd8e3a2a90e1478b856aee8fd18a2a3852682.zip
* sysdeps/unix/opendir.c (__alloc_dir): Correct order of DIR
elements during initialization.
Diffstat (limited to 'sysdeps/unix')
-rw-r--r--sysdeps/unix/opendir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/unix/opendir.c b/sysdeps/unix/opendir.c
index 34f5b719d3..0a116247d2 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;