diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2021-05-09 13:26:03 +0200 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2021-05-09 13:26:03 +0200 |
commit | f33e8e4a955ac54de39faa10d72c26f36005e916 (patch) | |
tree | c3c327e39bfa5d41e38bbbfaf5ed2efeb453310d /mysys | |
parent | fbad1b115025e2b8d919ee3cae8b5ba5785eb002 (diff) | |
download | mariadb-git-f33e8e4a955ac54de39faa10d72c26f36005e916.tar.gz |
Windows : fix warning about potential division by 0
The warning brought by code analysis, unsafe arithmetic in timer related code
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/my_getsystime.c | 2 |
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 |