kv_pair: Fix improper usage of calloc() in kv_pair_new()
Seems we've been lucky not to have had issues with this, until Stephen
Gilles (email@example.com) encountered problems running fmap_decode
on an ARM-based system (Asus C201 / veyron_speedy) using musl libc.
TEST=unit tests pass, fmap_decode no longer crashes for Stephen
Signed-off-by: David Hendricks <firstname.lastname@example.org>
Reviewed-by: Duncan Laurie <email@example.com>
1 file changed