summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-02-15 02:24:57 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:10:42 -0500
commit4d980e56c48e07468496809169aa289f60672562 (patch)
tree8fe40d5ce6184e60d3014138e4c37402b6b79294 /source4
parent530d46f6748a17ca8500a861f53c0d4f451b2005 (diff)
downloadsamba-4d980e56c48e07468496809169aa289f60672562.tar.gz
samba-4d980e56c48e07468496809169aa289f60672562.tar.bz2
samba-4d980e56c48e07468496809169aa289f60672562.zip
r5401: using talloc_array() is neater here
(This used to be commit b35ee83536e01c000aace2f4764f6727efd63170)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/util_strlist.c2
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;
}