diff --git a/lib/blob/blobstore.c b/lib/blob/blobstore.c index 75e512f5f..f59852353 100644 --- a/lib/blob/blobstore.c +++ b/lib/blob/blobstore.c @@ -68,6 +68,7 @@ blob_is_esnap_clone(const struct spdk_blob *blob) static int blob_id_cmp(struct spdk_blob *blob1, struct spdk_blob *blob2) { + assert(blob1 != NULL && blob2 != NULL); return (blob1->id < blob2->id ? -1 : blob1->id > blob2->id); }