svn commit: branches/uClibc-nptl/libc/misc/dirent

carmelo at uclibc.org carmelo at uclibc.org
Sun Dec 9 14:22:16 UTC 2007


Author: carmelo
Date: 2007-12-09 06:22:14 -0800 (Sun, 09 Dec 2007)
New Revision: 20633

Log:
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 at st.com>



Modified:
   branches/uClibc-nptl/libc/misc/dirent/opendir.c


Changeset:
Modified: branches/uClibc-nptl/libc/misc/dirent/opendir.c
===================================================================
--- branches/uClibc-nptl/libc/misc/dirent/opendir.c	2007-12-09 10:07:39 UTC (rev 20632)
+++ branches/uClibc-nptl/libc/misc/dirent/opendir.c	2007-12-09 14:22:14 UTC (rev 20633)
@@ -77,7 +77,6 @@
 
 	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)




More information about the uClibc-cvs mailing list