diff --git a/src/image/oci/storage/image_store/image_store.c b/src/image/oci/storage/image_store/image_store.c index f89383c646bf32d9d17b90423a866e04509c038f..5b3928220816d30bc4cbd051af48b19f6d2c15bf 100644 --- a/src/image/oci/storage/image_store/image_store.c +++ b/src/image/oci/storage/image_store/image_store.c @@ -383,11 +383,12 @@ static digest_image_t *create_empty_digest_images() { digest_image_t *digest_images = NULL; - digest_images = (digest_image_t *)util_common_calloc_s(sizeof(digest_image_t *)); + digest_images = (digest_image_t *)util_common_calloc_s(sizeof(digest_image_t)); if (digest_images == NULL) { ERROR("Out of memory"); return NULL; } + digest_images->images_list_len = 0; linked_list_init(&digest_images->images_list);