diff options
author | Michael Adam <obnox@samba.org> | 2013-05-28 16:59:25 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2014-01-13 10:15:54 +0100 |
commit | 9f269c90f880e224c61fb46623a60a747c2cac5c (patch) | |
tree | a7c146f9fd1adfac91cb1dfeb7fcfadd42545d70 /source3/modules | |
parent | 285e1e43ef8a26c8d638e721dd59893f71682465 (diff) | |
download | samba-9f269c90f880e224c61fb46623a60a747c2cac5c.tar.gz |
shadow_copy2: initialize "converted" string to null in shadow_copy2_convert()
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit 249e9b4a34d8959bd94735c1921ecfc24d6a2705)
Diffstat (limited to 'source3/modules')
-rw-r--r-- | source3/modules/vfs_shadow_copy2.c | 2 |
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; } |