diff options
Diffstat (limited to 'libc/misc/dirent/opendir.c')
-rw-r--r-- | libc/misc/dirent/opendir.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libc/misc/dirent/opendir.c b/libc/misc/dirent/opendir.c index cfc699be0..26ab91511 100644 --- a/libc/misc/dirent/opendir.c +++ b/libc/misc/dirent/opendir.c @@ -64,9 +64,8 @@ close_and_ret: if (!(ptr = malloc(sizeof(*ptr)))) goto nomem_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) ptr->dd_max = 512; |