devkitPro / libfat

FAT library for GBA, DS, Gamecube & Wii
http://devkitpro.org/viewforum.php?f=24
55 stars 36 forks source link

Uninitialized timespec fields in stat #19

Open FrankHB opened 4 years ago

FrankHB commented 4 years ago

This commit removed some redundant assignments on implementation-specific fields. However, it also left some public ones uninitialized.

Probably adding this would be better:

st->st_atim.tv_nsec = 0;
st->st_mtim.tv_nsec = 0;
st->st_ctim.tv_nsec = 0;