lib/blob: add missing dereference in blob_get_snapshot_and_clone_entries

The assertion should verify that a clone has been found.  Without the
dereference, it makes no sense, as that pointer is dereferenced earlier.

Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com>
Change-Id: I67fa17b33df6d507822a17ffc221a6d360985646
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8919
Community-CI: Mellanox Build Bot
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Konrad Sztyber 2021-07-23 12:02:36 +02:00 committed by Tomasz Zawadzki
parent 56d702ab23
commit d60fa400e4

View File

@ -3029,7 +3029,7 @@ blob_get_snapshot_and_clone_entries(struct spdk_blob *blob,
}
}
assert(clone_entry != NULL);
assert(*clone_entry != NULL);
}
}