mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-08 18:36:17 +01: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:
parent
7a50c3184d
commit
3c027268a4
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user