mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user