From 06f8c11fef4cc69e70224739fc55351ecfe7ac81 Mon Sep 17 00:00:00 2001 From: Carmelo Amoroso Date: Fri, 7 Dec 2007 14:42:06 +0000 Subject: 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 --- libc/misc/dirent/opendir.c | 1 - 1 file changed, 1 deletion(-) (limited to 'libc') 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) -- cgit v1.2.3