git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
530d46f
)
r5401: using talloc_array() is neater here
author
Andrew Tridgell
<tridge@samba.org>
Tue, 15 Feb 2005 02:24:57 +0000
(
02:24
+0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:10:42 +0000
(13:10 -0500)
(This used to be commit
b35ee83536e01c000aace2f4764f6727efd63170
)
source4/lib/util_strlist.c
patch
|
blob
|
history
diff --git
a/source4/lib/util_strlist.c
b/source4/lib/util_strlist.c
index 0b78e9f69e84485da132e67ec24dd1fef87fc89c..3b949f6eef145f2f2e15909f09df8013cf83bc7a 100644
(file)
--- 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;
}