From 9226f87ad1315a38e9711e496dcf9eed7f199e6a Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Sun, 6 Sep 2026 23:47:43 +0200 Subject: [PATCH] Zero-initialize thermal model params in thermal_alloc() --- cmdline/thermal.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cmdline/thermal.c b/cmdline/thermal.c index 7e138aec..1fa923ce 100644 --- a/cmdline/thermal.c +++ b/cmdline/thermal.c @@ -17,6 +17,7 @@ struct snapraid_thermal* thermal_alloc(uint64_t dev, const char* name) thermal->device = dev; thermal->latest_temperature = 0; thermal->count = 0; + memset(&thermal->params, 0, sizeof(thermal->params)); pathcpy(thermal->name, sizeof(thermal->name), name); return thermal;