diff --git a/util/cbfstool/flashmap/kv_pair.c b/util/cbfstool/flashmap/kv_pair.c index 95e5034e95..c02068c1c2 100644 --- a/util/cbfstool/flashmap/kv_pair.c +++ b/util/cbfstool/flashmap/kv_pair.c @@ -56,7 +56,7 @@ struct kv_pair *kv_pair_new(void) { struct kv_pair *kv; - kv = calloc(0, sizeof(*kv)); + kv = calloc(1, sizeof(*kv)); if (!kv) return NULL;