From 9a97f81143f135c070bbe12d7842796c3e02c9a4 Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Sat, 21 Apr 2012 17:35:32 +0200 Subject: [PATCH] Add missing NULL. --- src/array.c | 2 +- src/string.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {