git.samba.org
/
jra
/
samba
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ab25a7
)
r4092: Bring into line with new *alloc rules.
author
Jeremy Allison
<jra@samba.org>
Wed, 8 Dec 2004 01:52:23 +0000
(
01:52
+0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 15:53:33 +0000
(10:53 -0500)
Jeremy.
(This used to be commit
2ed86ac5844ce5893beb2bca351fee66cc3b4049
)
examples/VFS/shadow_copy_test.c
patch
|
blob
|
history
diff --git
a/examples/VFS/shadow_copy_test.c
b/examples/VFS/shadow_copy_test.c
index d2b7206cd35a6b0f7ba31326e879dc58dc360991..155181229b190900532ce16c197d446fc5fc2acb 100644
(file)
--- a/
examples/VFS/shadow_copy_test.c
+++ b/
examples/VFS/shadow_copy_test.c
@@
-58,7
+58,7
@@
static int test_get_shadow_copy_data(vfs_handle_struct *handle, files_struct *fs
shadow_copy_data->num_volumes = num;
if (labels) {
- shadow_copy_data->labels =
(SHADOW_COPY_LABEL *)talloc_zero(shadow_copy_data->mem_ctx,(num)*sizeof(SHADOW_COPY_LABEL)
);
+ shadow_copy_data->labels =
TALLOC_ZERO_ARRAY(shadow_copy_data->mem_ctx,SHADOW_COPY_LABEL,num
);
for (i=0;i<num;i++) {
snprintf(shadow_copy_data->labels[i], sizeof(SHADOW_COPY_LABEL), "@GMT-2003.08.05-12.%02u.00",i);
}