From 59000546c02a0d486a8a6bbfaf12a8d3910f2ea2 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 31 Dec 2012 15:40:07 +0100 Subject: [PATCH] utils: make it unnecessary to specify the last NULL argument for calloc_a Signed-off-by: Felix Fietkau --- utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.h b/utils.h index 065a28b..d1a6cd3 100644 --- a/utils.h +++ b/utils.h @@ -30,7 +30,7 @@ * the last argument needs to be a NULL pointer */ -#define calloc_a(len, ...) __calloc_a(len, ##__VA_ARGS__) +#define calloc_a(len, ...) __calloc_a(len, ##__VA_ARGS__, NULL) void *__calloc_a(size_t len, ...); -- 2.25.1