summaryrefslogtreecommitdiffstats
path: root/test/test_sratom.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_sratom.c')
-rw-r--r--test/test_sratom.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_sratom.c b/test/test_sratom.c
index 336d50f..3ce0241 100644
--- a/test/test_sratom.c
+++ b/test/test_sratom.c
@@ -9,6 +9,7 @@
#include <serd/serd.h>
#include <sratom/sratom.h>
+#include <assert.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
@@ -37,6 +38,7 @@ copy_string(const char* str)
{
const size_t len = strlen(str);
char* dup = (char*)malloc(len + 1);
+ assert(dup);
memcpy(dup, str, len + 1);
return dup;
}