From 7fc640b2967b6cadab84b116fce31bc5c35897c0 Mon Sep 17 00:00:00 2001 From: Jim Harris Date: Fri, 24 Mar 2017 16:21:05 -0700 Subject: [PATCH] test/blobfs/cache_ut: assert calloc returns a buffer Signed-off-by: Jim Harris Change-Id: I9d605fb844c2f11bc12b0200ca9fd1cac6c5f95d --- test/lib/blobfs/cache_ut/cache_ut.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/lib/blobfs/cache_ut/cache_ut.c b/test/lib/blobfs/cache_ut/cache_ut.c index d7fa667c5..1d4a90b40 100644 --- a/test/lib/blobfs/cache_ut/cache_ut.c +++ b/test/lib/blobfs/cache_ut/cache_ut.c @@ -76,6 +76,7 @@ send_request(fs_request_fn fn, void *arg) struct ut_request *req; req = calloc(1, sizeof(*req)); + assert(req != NULL); req->fn = fn; req->arg = arg; req->done = 0;