Explorar o código

Removed pointless initialization to 0 of DIR fields
after having added memset.
Thanks to Peter Mazinger for pointing this out.

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

Carmelo Amoroso %!s(int64=18) %!d(string=hai) anos
pai
achega
06f8c11fef
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  1. 0 1
      libc/misc/dirent/opendir.c

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

@@ -66,7 +66,6 @@ close_and_ret:
 
 
 	memset(ptr, '\0', sizeof(DIR));
 	memset(ptr, '\0', sizeof(DIR));
 	ptr->dd_fd = fd;
 	ptr->dd_fd = fd;
-	ptr->dd_nextloc = ptr->dd_size = ptr->dd_nextoff = 0;
 
 
 	ptr->dd_max = statbuf.st_blksize;
 	ptr->dd_max = statbuf.st_blksize;
 	if (ptr->dd_max < 512)
 	if (ptr->dd_max < 512)