From 22513e9047e6390bda80096502d5020811b9ef0e Mon Sep 17 00:00:00 2001 From: Drath Date: Sat, 3 May 2025 20:52:01 +0200 Subject: [PATCH] zeroize struct --- include/gpu.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/gpu.hpp b/include/gpu.hpp index 6dad241..cbc8cf3 100644 --- a/include/gpu.hpp +++ b/include/gpu.hpp @@ -23,9 +23,9 @@ struct gpu_t { }; struct GpuMetricsHeader_t { - uint16_t structure_size; - uint8_t format_revision; - uint8_t content_revision; + uint16_t structure_size = 0; + uint8_t format_revision = 0; + uint8_t content_revision = 0; }; gpu_t getGpu(GpuMetricsHeader_t header, std::string hw);