From 483c74aaab7c20d82a48621f1dd8b300292d3404 Mon Sep 17 00:00:00 2001 From: weidai Date: Tue, 29 Jul 2003 01:18:33 +0000 Subject: fix potential threading problem with initialization of static objects git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@118 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- hrtimer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hrtimer.cpp') diff --git a/hrtimer.cpp b/hrtimer.cpp index 3396aea..24fb6f9 100644 --- a/hrtimer.cpp +++ b/hrtimer.cpp @@ -40,7 +40,7 @@ word64 Timer::GetCurrentTimerValue() word64 Timer::TicksPerSecond() { #if defined(CRYPTOPP_WIN32_AVAILABLE) - static LARGE_INTEGER freq; + static LARGE_INTEGER freq = {0}; if (freq.QuadPart == 0) { if (!QueryPerformanceFrequency(&freq)) -- cgit v1.2.1