diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-02-15 02:24:57 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2005-02-15 02:24:57 +0000 |
commit | 2ee253c949460a7a92cb586213a4b68f25f2b326 (patch) | |
tree | 0a84972a4738001126ace58aaf00f89dec932fd6 | |
parent | 4e2dc6df3ff72443b089b3df9ea4addb7b77cbe8 (diff) | |
download | samba-2ee253c949460a7a92cb586213a4b68f25f2b326.tar.gz samba-2ee253c949460a7a92cb586213a4b68f25f2b326.tar.xz samba-2ee253c949460a7a92cb586213a4b68f25f2b326.zip |
r5401: using talloc_array() is neater here
-rw-r--r-- | source/lib/util_strlist.c | 2 |
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; } |