diff options
author | Michael Adam <obnox@samba.org> | 2013-05-28 16:59:25 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2013-10-05 09:21:28 +1300 |
commit | 249e9b4a34d8959bd94735c1921ecfc24d6a2705 (patch) | |
tree | 62cd80508947518c285a251c3b5f26d873dd2ff9 /source3 | |
parent | 4b8d9c65f45db426716763629f1e22b0eb859a99 (diff) | |
download | samba-249e9b4a34d8959bd94735c1921ecfc24d6a2705.tar.gz samba-249e9b4a34d8959bd94735c1921ecfc24d6a2705.tar.bz2 samba-249e9b4a34d8959bd94735c1921ecfc24d6a2705.zip |
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>
Diffstat (limited to 'source3')
-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; } |