test/blobfs/cache_ut: assert calloc returns a buffer
Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I9d605fb844c2f11bc12b0200ca9fd1cac6c5f95d
This commit is contained in:
parent
42eade49cc
commit
7fc640b296
@ -76,6 +76,7 @@ send_request(fs_request_fn fn, void *arg)
|
|||||||
struct ut_request *req;
|
struct ut_request *req;
|
||||||
|
|
||||||
req = calloc(1, sizeof(*req));
|
req = calloc(1, sizeof(*req));
|
||||||
|
assert(req != NULL);
|
||||||
req->fn = fn;
|
req->fn = fn;
|
||||||
req->arg = arg;
|
req->arg = arg;
|
||||||
req->done = 0;
|
req->done = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user