summaryrefslogtreecommitdiffstats
path: root/src/malloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/malloc.c')
-rw-r--r--src/malloc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/malloc.c b/src/malloc.c
index 6a89554..a5171fa 100644
--- a/src/malloc.c
+++ b/src/malloc.c
@@ -1,10 +1,17 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <string.h>
+#include "macro.h"
#include "malloc.h"
void* sa_memdup(const void* p, size_t size) {
void *r;
+ sa_assert(p);
+
if (!(r = sa_malloc(size)))
return NULL;