fixed init warning

This commit is contained in:
Yann Collet 2019-10-04 15:09:52 -07:00
parent cadff8cdc4
commit e0d413d648

View File

@ -69,7 +69,8 @@ int UTIL_setFileStat(const char *filename, stat_t *statbuf)
#else #else
{ {
/* (atime, mtime) */ /* (atime, mtime) */
struct timespec timebuf[2] = { {0, UTIME_NOW}, statbuf->st_mtim }; struct timespec timebuf[2] = { {0, UTIME_NOW} };
timebuf[1] = statbuf->st_mtim;
res += utimensat(AT_FDCWD, filename, timebuf, 0); res += utimensat(AT_FDCWD, filename, timebuf, 0);
} }
#endif #endif