summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorCarmelo Amoroso <carmelo.amoroso@st.com>2007-12-07 14:42:06 +0000
committerCarmelo Amoroso <carmelo.amoroso@st.com>2007-12-07 14:42:06 +0000
commit06f8c11fef4cc69e70224739fc55351ecfe7ac81 (patch)
tree40d7e1bb82511ac8b49353f3aa1ce3d33be90828 /libc
parentd58c76005e5b3471ac9313c53bf43007a97c307c (diff)
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>
Diffstat (limited to 'libc')
-rw-r--r--libc/misc/dirent/opendir.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libc/misc/dirent/opendir.c b/libc/misc/dirent/opendir.c
index cee703e68..cfc699be0 100644
--- a/libc/misc/dirent/opendir.c
+++ b/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)