From ef7e6d0a6adcb5d8b672ed70ec455dfbdce1b54d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Thu, 25 Jan 2024 20:22:50 +0800 Subject: [PATCH] GPU (WSL): fix uninitialized variables --- src/detection/gpu/gpu_wsl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/detection/gpu/gpu_wsl.cpp b/src/detection/gpu/gpu_wsl.cpp index 91d67e54a..22bab850b 100644 --- a/src/detection/gpu/gpu_wsl.cpp +++ b/src/detection/gpu/gpu_wsl.cpp @@ -68,6 +68,7 @@ const char* ffGPUDetectByDirectX(FF_MAYBE_UNUSED const FFGPUOptions* options, FF gpu->coreCount = FF_GPU_CORE_COUNT_UNSET; gpu->temperature = FF_GPU_TEMP_UNSET; gpu->frequency = FF_GPU_FREQUENCY_UNSET; + ffStrbufInitStatic(&gpu->platformApi, "DXCore"); ffStrbufInit(&gpu->driver); uint64_t value = 0;