From c9b0837c923745cd9ddb2bee452b8eaf80468440 Mon Sep 17 00:00:00 2001 From: Steve Markgraf Date: Thu, 28 Aug 2025 19:33:52 +0200 Subject: [PATCH] hsdaoh_test: fix ppm test on Windows On some recent compilers the init flag inside struct time_generic is not zeroed, causing QueryPerformanceFrequency() to never be called. --- src/hsdaoh_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hsdaoh_test.c b/src/hsdaoh_test.c index 7848665..c72dd76 100644 --- a/src/hsdaoh_test.c +++ b/src/hsdaoh_test.c @@ -168,8 +168,8 @@ static void ppm_test(uint32_t len) static uint64_t interval = 0; static uint64_t nsamples_total = 0; static uint64_t interval_total = 0; - struct time_generic ppm_now; - static struct time_generic ppm_recent; + struct time_generic ppm_now = { 0 }; + static struct time_generic ppm_recent = { 0 }; static enum { PPM_INIT_NO, PPM_INIT_DUMP,