From 8a048037fc938ead91807793f151fed54f1553dd Mon Sep 17 00:00:00 2001 From: Petri Latvala Date: Wed, 16 Jan 2019 13:20:34 +0200 Subject: tests: Use correct type for calloc No actual difference, size of a pointer is the same as pointer-to-pointer. Signed-off-by: Petri Latvala Cc: Mika Kahola Cc: Maarten Lankhorst Reviewed-by: Mika Kahola --- tests/kms_concurrent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/kms_concurrent.c') diff --git a/tests/kms_concurrent.c b/tests/kms_concurrent.c index c17b1fe6..af8ca70c 100644 --- a/tests/kms_concurrent.c +++ b/tests/kms_concurrent.c @@ -61,7 +61,7 @@ static void test_init(data_t *data, enum pipe pipe, int n_planes, igt_plane_t *primary; int ret; - data->plane = calloc(n_planes, sizeof(data->plane)); + data->plane = calloc(n_planes, sizeof(*data->plane)); igt_assert_f(data->plane != NULL, "Failed to allocate memory for planes\n"); data->fb = calloc(n_planes, sizeof(struct igt_fb)); -- cgit v1.2.3