git.samba.org
/
mat
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b8d9c6
)
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
Andrew Bartlett
<abartlet@samba.org>
Fri, 4 Oct 2013 20:21:28 +0000
(09:21 +1300)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
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 8c2e7679469941eb27542c6f005535b93e7ad93f..ecf448d38183d9cad4112597360c3f0f06e09afe 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;
}