commit | 203c3841fc6bf9bd2b71ff9ce8e86874375eec1e | [log] [tgz] |
---|---|---|
author | Damien Lespiau <damien.lespiau@intel.com> | Fri Jun 26 13:55:01 2015 +0100 |
committer | Damien Lespiau <damien.lespiau@intel.com> | Sat Jun 27 16:04:07 2015 +0100 |
tree | 08a123d2208601104847b1ffa9facafdb799ae31 | |
parent | 76ea7b913373d1291a95706dfede7e48a812777e [diff] |
stats: Zero the whole structure at init() time Because the structure started small, I initialized every member directly, but that means that the new fields added weren't properly initialized (sigh!). Zero the whole thing first then. Also, the punishment for introducing a bug should be to write the corresponding unit test. It's not a perfect one, but I'll take it. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>