utils: make it unnecessary to specify the last NULL argument for calloc_a
[project/libubox.git] / utils.h
diff --git a/utils.h b/utils.h
index 065a28b..d1a6cd3 100644 (file)
--- a/utils.h
+++ b/utils.h
@@ -30,7 +30,7 @@
  * the last argument needs to be a NULL pointer
  */
 
  * 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, ...);
 
 
 void *__calloc_a(size_t len, ...);