mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Zero-initialize thermal model params in thermal_alloc()
This commit is contained in:
parent
f9819266e7
commit
9226f87ad1
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue