Browse Source

Revert latest changes. Instead of applying this work-around
a proper fix should ensure that statically linked mutli-threaded
binaries take always the proper locking implementation.

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>

Carmelo Amoroso 16 years ago
parent
commit
96c028b213
1 changed files with 1 additions and 2 deletions
  1. 1 2
      libc/misc/dirent/opendir.c

+ 1 - 2
libc/misc/dirent/opendir.c

@@ -64,9 +64,8 @@ close_and_ret:
 	if (!(ptr = malloc(sizeof(*ptr))))
 		goto nomem_close_and_ret;
 
-	memset(ptr, '\0', sizeof(DIR));
 	ptr->dd_fd = fd;
-
+	ptr->dd_nextloc = ptr->dd_size = ptr->dd_nextoff = 0;
 	ptr->dd_max = statbuf.st_blksize;
 	if (ptr->dd_max < 512)
 		ptr->dd_max = 512;