Skip to content

Commit

Permalink
- memset stat to 0 for getmtime to allow mtime == 0 for checking file…
Browse files Browse the repository at this point in the history
… exists
  • Loading branch information
polymonster committed Nov 5, 2023
1 parent 963afd1 commit c201896
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/pen/source/posix/file_system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ namespace pen
pen_error filesystem_getmtime(const c8* filename, u32& mtime_out)
{
struct stat stat_res;
memset(&stat_res, 0x0, sizeof(stat_res));

stat(filename, &stat_res);

Expand Down

0 comments on commit c201896

Please sign in to comment.