Mercurial > hg > th-libs
changeset 742:64af66cae541
Always clear stat structure in th_stat_path().
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 14 Dec 2022 01:38:08 +0200 |
parents | 0852bd106034 |
children | e2873f764b63 |
files | th_file.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/th_file.c Wed Dec 14 01:32:40 2022 +0200 +++ b/th_file.c Wed Dec 14 01:38:08 2022 +0200 @@ -99,6 +99,8 @@ bool th_stat_path(const char *path, th_stat_data *data) { + memset(data, 0, sizeof(*data)); + #if defined(TH_PLAT_WINDOWS) WIN32_FILE_ATTRIBUTE_DATA fdata; if (!GetFileAttributesExA(path, GetFileExInfoStandard, &fdata))