summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/modules/vfs_shadow_copy2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/modules/vfs_shadow_copy2.c b/source3/modules/vfs_shadow_copy2.c
index 8c2e767946..ecf448d381 100644
--- a/source3/modules/vfs_shadow_copy2.c
+++ b/source3/modules/vfs_shadow_copy2.c
@@ -509,7 +509,7 @@ static char *shadow_copy2_convert(TALLOC_CTX *mem_ctx,
goto fail;
}
insertlen = talloc_get_size(insert)-1;
- converted = talloc_array(mem_ctx, char, pathlen + insertlen + 1);
+ converted = talloc_zero_array(mem_ctx, char, pathlen + insertlen + 1);
if (converted == NULL) {
goto fail;
}