fixed init warning
This commit is contained in:
parent
cadff8cdc4
commit
e0d413d648
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user