소스 검색

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 16 년 전
부모
커밋
06f8c11fef
1개의 변경된 파일0개의 추가작업 그리고 1개의 파일을 삭제
  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)