summaryrefslogtreecommitdiff
path: root/sys/compat/svr4/svr4_misc.c
diff options
context:
space:
mode:
authorGordon Tetlow <gordon@FreeBSD.org>2018-04-04 05:43:03 +0000
committerGordon Tetlow <gordon@FreeBSD.org>2018-04-04 05:43:03 +0000
commit8411c9ac24aabdbbde468778b35da58dc3c15178 (patch)
tree86ded7fd2b24fcb42a6ef3883c4c6eb617e2dfc1 /sys/compat/svr4/svr4_misc.c
parent211072860627f05561c829d09714b201a72562cf (diff)
Notes
Diffstat (limited to 'sys/compat/svr4/svr4_misc.c')
-rw-r--r--sys/compat/svr4/svr4_misc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/compat/svr4/svr4_misc.c b/sys/compat/svr4/svr4_misc.c
index 5d1a4098115b..f01efc5f84ac 100644
--- a/sys/compat/svr4/svr4_misc.c
+++ b/sys/compat/svr4/svr4_misc.c
@@ -260,6 +260,7 @@ svr4_sys_getdents64(td, uap)
u_long *cookies = NULL, *cookiep;
int ncookies;
+ memset(&svr4_dirent, 0, sizeof(svr4_dirent));
DPRINTF(("svr4_sys_getdents64(%d, *, %d)\n",
uap->fd, uap->nbytes));
error = getvnode(td->td_proc->p_fd, uap->fd,