summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-02-15 02:24:57 +0000
committerAndrew Tridgell <tridge@samba.org>2005-02-15 02:24:57 +0000
commit2ee253c949460a7a92cb586213a4b68f25f2b326 (patch)
tree0a84972a4738001126ace58aaf00f89dec932fd6
parent4e2dc6df3ff72443b089b3df9ea4addb7b77cbe8 (diff)
downloadsamba-2ee253c949460a7a92cb586213a4b68f25f2b326.tar.gz
samba-2ee253c949460a7a92cb586213a4b68f25f2b326.tar.xz
samba-2ee253c949460a7a92cb586213a4b68f25f2b326.zip
r5401: using talloc_array() is neater here
-rw-r--r--source/lib/util_strlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/util_strlist.c b/source/lib/util_strlist.c
index 0b78e9f69e8..3b949f6eef1 100644
--- a/source/lib/util_strlist.c
+++ b/source/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;
}