summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2021-05-09 13:26:03 +0200
committerVladislav Vaintroub <wlad@mariadb.com>2021-05-09 13:26:03 +0200
commitf33e8e4a955ac54de39faa10d72c26f36005e916 (patch)
treec3c327e39bfa5d41e38bbbfaf5ed2efeb453310d
parentfbad1b115025e2b8d919ee3cae8b5ba5785eb002 (diff)
downloadmariadb-git-f33e8e4a955ac54de39faa10d72c26f36005e916.tar.gz
Windows : fix warning about potential division by 0
The warning brought by code analysis, unsafe arithmetic in timer related code
-rw-r--r--mysys/my_getsystime.c2
1 files changed, 1 insertions, 1 deletions
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