]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib: Replace a call to TALLOC_ZERO()
authorVolker Lendecke <vl@samba.org>
Tue, 13 Apr 2021 14:55:47 +0000 (14:55 +0000)
committerJeremy Allison <jra@samba.org>
Mon, 19 Apr 2021 18:18:31 +0000 (18:18 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/string_replace.c

index 42022d78ab9ecec2e15cd1930e48bc448429405d..f66f5488667cd07b639db53d96055b3d0b1f2601 100644 (file)
@@ -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;
        }