]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixed init warning 1815/head
authorYann Collet <cyan@fb.com>
Fri, 4 Oct 2019 22:09:52 +0000 (15:09 -0700)
committerYann Collet <cyan@fb.com>
Fri, 4 Oct 2019 22:09:52 +0000 (15:09 -0700)
programs/util.c

index 3988295d45bb1bab7d2378734247ac6957833e6d..c5d344ec899a7ae5c934882a8e3137309989a02e 100644 (file)
@@ -69,7 +69,8 @@ int UTIL_setFileStat(const char *filename, stat_t *statbuf)
 #else
     {
         /* (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);
     }
 #endif