Zero-initialize thermal model params in thermal_alloc()

This commit is contained in:
Andrea Mazzoleni 2026-09-06 23:47:43 +02:00
parent f9819266e7
commit 9226f87ad1

View file

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