dirent: Simplify a memset() call

Let the compiler figure out the size, rather than hard-coding it the
same as the struct definition.

This makes no functional changes.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall 2021-04-19 19:22:33 +01:00
parent 7a50c3184d
commit 3c027268a4

View File

@ -135,7 +135,7 @@ _topendir (const _TCHAR *szPath)
nd->dd_dir.d_ino = 0;
nd->dd_dir.d_reclen = 0;
nd->dd_dir.d_namlen = 0;
memset (nd->dd_dir.d_name, 0, FILENAME_MAX);
memset (nd->dd_dir.d_name, 0, sizeof (nd->dd_dir.d_name));
return nd;
}