]> git.proxmox.com Git - qemu.git/blobdiff - savevm.c
Revert "Revert "rtl8139: do the network/host communication only in normal operating...
[qemu.git] / savevm.c
index 12fb20954feba27eca1bf9a584259a9c1696edd4..2d18babd6e83f27ad96ce05e2bb83371555fa7ee 100644 (file)
--- a/savevm.c
+++ b/savevm.c
@@ -2106,7 +2106,8 @@ void do_savevm(Monitor *mon, const QDict *qdict)
         }
     } else {
 #ifdef _WIN32
-        ptm = localtime(&tb.time);
+        time_t t = tb.time;
+        ptm = localtime(&t);
         strftime(sn->name, sizeof(sn->name), "vm-%Y%m%d%H%M%S", ptm);
 #else
         /* cast below needed for OpenBSD where tv_sec is still 'long' */