diff options
-rw-r--r-- | source4/lib/util_strlist.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |