From 89b77b656950275877d284ee3dcdbe01d3375d19 Mon Sep 17 00:00:00 2001 From: toaster Date: Thu, 5 Jan 2023 21:44:14 +0000 Subject: [PATCH] opendir: initialise dd_dta struct --- src/filesrch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/filesrch.c b/src/filesrch.c index ae1c0e85c..a97a45444 100644 --- a/src/filesrch.c +++ b/src/filesrch.c @@ -172,6 +172,7 @@ opendir (const CHAR *szPath) /* Initialize the dirent structure. ino and reclen are invalid under * Win32, and name simply points at the appropriate part of the * findfirst_t structure. */ + nd->dd_dta = {0}; nd->dd_dir.d_ino = 0; nd->dd_dir.d_reclen = 0; nd->dd_dir.d_namlen = 0;