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.
This commit is contained in:
Steve Markgraf 2025-08-28 19:33:52 +02:00
parent 29668d3758
commit c9b0837c92

View file

@ -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,