svn commit: trunk/uClibc/libc/misc/dirent

carmelo at uclibc.org carmelo at uclibc.org
Fri Dec 7 14:42:08 UTC 2007


Author: carmelo
Date: 2007-12-07 06:42:06 -0800 (Fri, 07 Dec 2007)
New Revision: 20628

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


Modified:
   trunk/uClibc/libc/misc/dirent/opendir.c


Changeset:
Modified: trunk/uClibc/libc/misc/dirent/opendir.c
===================================================================
--- trunk/uClibc/libc/misc/dirent/opendir.c	2007-12-07 14:24:06 UTC (rev 20627)
+++ trunk/uClibc/libc/misc/dirent/opendir.c	2007-12-07 14:42:06 UTC (rev 20628)
@@ -66,7 +66,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