Explorar el Código

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 hace 17 años
padre
commit
96c028b213
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  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;