# HG changeset patch # User Matti Hamalainen # Date 1670974688 -7200 # Node ID 64af66cae5419be2e801ce6c67ffd416d4e851e4 # Parent 0852bd106034f6937ef4ad42ac981da6f48daa1a Always clear stat structure in th_stat_path(). diff -r 0852bd106034 -r 64af66cae541 th_file.c --- 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))