From: Volker Lendecke Date: Tue, 13 Apr 2021 14:55:47 +0000 (+0000) Subject: lib: Replace a call to TALLOC_ZERO() X-Git-Tag: tevent-0.11.0~1098 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17ba76b9794fc9afe3c2ae086d89867b96d7a581;p=thirdparty%2Fsamba.git lib: Replace a call to TALLOC_ZERO() Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/lib/string_replace.c b/source3/lib/string_replace.c index 42022d78ab9..f66f5488667 100644 --- a/source3/lib/string_replace.c +++ b/source3/lib/string_replace.c @@ -101,7 +101,7 @@ struct char_mappings **string_replace_init_map(TALLOC_CTX *mem_ctx, return NULL; } - cmaps = TALLOC_ZERO(mem_ctx, MAP_NUM * sizeof(struct char_mappings *)); + cmaps = talloc_zero_array(mem_ctx, struct char_mappings *, MAP_NUM); if (cmaps == NULL) { return NULL; }