From 4d980e56c48e07468496809169aa289f60672562 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 15 Feb 2005 02:24:57 +0000 Subject: r5401: using talloc_array() is neater here (This used to be commit b35ee83536e01c000aace2f4764f6727efd63170) --- source4/lib/util_strlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/lib/util_strlist.c b/source4/lib/util_strlist.c index 0b78e9f69e..3b949f6eef 100644 --- a/source4/lib/util_strlist.c +++ b/source4/lib/util_strlist.c @@ -34,7 +34,7 @@ const char **str_list_make(TALLOC_CTX *mem_ctx, const char *string, const char * sep = LIST_SEP; } - ret = talloc_realloc(mem_ctx, NULL, const char *, 1); + ret = talloc_array(mem_ctx, const char *, 1); if (ret == NULL) { return NULL; } -- cgit