1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

r5401: using talloc_array() is neater here

(This used to be commit b35ee83536e01c000aace2f4764f6727efd63170)
This commit is contained in:
Andrew Tridgell 2005-02-15 02:24:57 +00:00 committed by Gerald (Jerry) Carter
parent 530d46f674
commit 4d980e56c4

View File

@ -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;
}