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 (firstname.lastname@example.org) 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 <email@example.com>
Reviewed-by: Duncan Laurie <firstname.lastname@example.org>
1 file changed