commit | 60658e0dc1df058607990278fdf9d831e0c2c71a | [log] [tgz] |
---|---|---|
author | Colin Ian King <[email protected]> | Mon Sep 19 14:34:08 2016 +0100 |
committer | Jens Axboe <[email protected]> | Mon Sep 19 08:19:40 2016 -0600 |
tree | 8518edd7779ec1bec41d674f77956672edf37989 | |
parent | 5c64a8df0ca88c79c9cb74674c2481e5f7ede511 [diff] |
sbitmap: initialize weight to zero Variable weight is not being initialized to zero before it is used to compute the weight sum. Ensure it is initialized to zero. Found with static analysis with cppcheck: [lib/sbitmap.c:177]: (error) Uninitialized variable: weight Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Jens Axboe <[email protected]>