utils: make it unnecessary to specify the last NULL argument for calloc_a
authorFelix Fietkau <nbd@openwrt.org>
Mon, 31 Dec 2012 14:40:07 +0000 (15:40 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 31 Dec 2012 14:40:12 +0000 (15:40 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
utils.h

diff --git a/utils.h b/utils.h
index 065a28b343f9e29e7cb4fe53d49313ff539fb972..d1a6cd33699eecb1eff61c798013fb7d198463f2 100644 (file)
--- 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, ...);