git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4693fb1
)
shadow_copy2: initialize "converted" string to null in shadow_copy2_convert()
author
Michael Adam
<obnox@samba.org>
Tue, 28 May 2013 14:59:25 +0000
(16:59 +0200)
committer
Karolin Seeger
<kseeger@samba.org>
Mon, 13 Jan 2014 09:17:22 +0000
(10:17 +0100)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit
249e9b4a34d8959bd94735c1921ecfc24d6a2705
)
source3/modules/vfs_shadow_copy2.c
patch
|
blob
|
history
diff --git
a/source3/modules/vfs_shadow_copy2.c
b/source3/modules/vfs_shadow_copy2.c
index 39efe747b06c7cd373b00d409c73087d27cf3c0d..81e454b00f8fe92b409bbfdb58077050a0ca551e 100644
(file)
--- 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;
}