From f33e8e4a955ac54de39faa10d72c26f36005e916 Mon Sep 17 00:00:00 2001 From: Vladislav Vaintroub Date: Sun, 9 May 2021 13:26:03 +0200 Subject: Windows : fix warning about potential division by 0 The warning brought by code analysis, unsafe arithmetic in timer related code --- mysys/my_getsystime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysys/my_getsystime.c b/mysys/my_getsystime.c index ce8a9ca786f..093600786fa 100644 --- a/mysys/my_getsystime.c +++ b/mysys/my_getsystime.c @@ -20,7 +20,7 @@ #ifdef _WIN32 #define OFFSET_TO_EPOC 116444736000000000LL -static ulonglong query_performance_frequency; +static ulonglong query_performance_frequency=1; #endif #ifdef HAVE_LINUX_UNISTD_H -- cgit v1.2.1