From 7aacb1cf9cc33f6b90501915eafc21aeb22e1f76 Mon Sep 17 00:00:00 2001 From: Oldes Huhuman Date: Thu, 3 Oct 2024 01:15:34 +0200 Subject: [PATCH] FIX: missing MAKE_CLEAR_MEM define --- src/include/reb-c.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/include/reb-c.h b/src/include/reb-c.h index c3806c8076..bfd21a3e19 100644 --- a/src/include/reb-c.h +++ b/src/include/reb-c.h @@ -309,6 +309,7 @@ typedef void(*CFUNC)(void *); // Memory related functions: #define MAKE_MEM(n) malloc(n) +#define MAKE_CLEAR_MEM(n) calloc(n, 1) #define MAKE_NEW(s) MAKE_MEM(sizeof(s)) #define FREE_MEM(m) free(m) #define CLEAR(m, s) memset((void*)(m), 0, s);