diff --git a/ze/tracer_ze_helpers.include.c b/ze/tracer_ze_helpers.include.c index a4a42125..e203b696 100644 --- a/ze/tracer_ze_helpers.include.c +++ b/ze/tracer_ze_helpers.include.c @@ -763,8 +763,8 @@ static ze_device_handle_t* _sampling_hDevices; static zes_freq_handle_t** _sampling_hFrequencies; static zes_pwr_handle_t** _sampling_hPowers; static zes_engine_handle_t** _sampling_engineHandles; -static uint32_t _sampling_deviceCount; -static uint32_t _sampling_subDeviceCount; +static uint32_t _sampling_deviceCount = 0; +static uint32_t _sampling_subDeviceCount = 0; static uint32_t* _sampling_freqDomainCounts; static uint32_t* _sampling_powerDomainCounts; static uint32_t* _sampling_engineCounts;