Zero'ing these using memset is not portable, we cannot rely on a zero'd mantissa and zero'd exponent to necessarily represent 0.0.
detected by static analysis with cppcheck:
src/thd_parse.cpp:229:5: portability: Using memset() on struct which contains a floating point number. [memsetClassFloat]
memset(&trip_cdev.pid_param, 0, sizeof(pid_param_t));
pid_param_t has 3 double precision values:
Zero'ing these using memset is not portable, we cannot rely on a zero'd mantissa and zero'd exponent to necessarily represent 0.0.
detected by static analysis with cppcheck: