summaryrefslogtreecommitdiffstats
path: root/libc
diff options
context:
space:
mode:
authorCarmelo Amoroso <carmelo.amoroso@st.com>2007-12-09 14:22:14 +0000
committerCarmelo Amoroso <carmelo.amoroso@st.com>2007-12-09 14:22:14 +0000
commit88b92a8cd03a8936bc26e5305321ad3dbb408b63 (patch)
treeb439fda334ee9d8bc65b84bb4b34a45f9a27af03 /libc
parentd91f719bdb06ed1de0931aaf6c2e825ad32b30d1 (diff)
downloaduClibc-alpine-88b92a8cd03a8936bc26e5305321ad3dbb408b63.tar.bz2
uClibc-alpine-88b92a8cd03a8936bc26e5305321ad3dbb408b63.tar.xz
Remove pointless initialisation to 0 of some DIR's fields
having called memset on whole DIR structure (and synch with trunk). Pointed out by Peter Mazinger 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 d0e19a790..8577d0703 100644
--- a/libc/misc/dirent/opendir.c
+++ b/libc/misc/dirent/opendir.c
@@ -77,7 +77,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)