Kaynağa Gözat

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 17 yıl önce
ebeveyn
işleme
06f8c11fef
1 değiştirilmiş dosya ile 0 ekleme ve 1 silme
  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));
 	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)