src/array_list.c

changeset 968
b5814aac3a76
parent 953
581ad4fd01e9
--- a/src/array_list.c	Fri Nov 01 18:16:32 2024 +0100
+++ b/src/array_list.c	Fri Nov 01 18:17:19 2024 +0100
@@ -105,6 +105,7 @@
 
     // determine capacity
     size_t cap = capacity == NULL ? *size : *capacity;
+    assert(*target != NULL || cap == 0);
 
     // check if resize is required
     size_t minsize = index + elem_count;

mercurial