diff --git a/src/array.c b/src/array.c index d8dbf45..d027d5d 100644 --- a/src/array.c +++ b/src/array.c @@ -113,7 +113,7 @@ copy(void *ptr) CFWArray *new; size_t i; - if ((new = cfw_new(cfw_array)) == NULL) + if ((new = cfw_new(cfw_array, NULL)) == NULL) return NULL; if ((new->data = malloc(sizeof(void*) * array->size)) == NULL) { diff --git a/src/string.c b/src/string.c index 55db71c..5c7904b 100644 --- a/src/string.c +++ b/src/string.c @@ -108,7 +108,7 @@ copy(void *ptr) CFWString *str = ptr; CFWString *new; - if ((new = cfw_new(cfw_string)) == NULL) + if ((new = cfw_new(cfw_string, NULL)) == NULL) return NULL; if ((new->data = malloc(str->len + 1)) == NULL) {