mirror of
https://github.com/samba-team/samba.git
synced 2025-03-30 06:50:24 +03:00
r22591: Fix up the examples also.
Jeremy. (This used to be commit aa5a1591c626e2828244a78f237af8a59af57784)
This commit is contained in:
parent
56a5d05b8b
commit
5b3d90e48b
@ -58,7 +58,11 @@ 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 = TALLOC_ZERO_ARRAY(shadow_copy_data->mem_ctx,SHADOW_COPY_LABEL,num);
|
||||
if (num) {
|
||||
shadow_copy_data->labels = TALLOC_ZERO_ARRAY(shadow_copy_data->mem_ctx,SHADOW_COPY_LABEL,num);
|
||||
} else {
|
||||
shadow_copy_data->labels = NULL;
|
||||
}
|
||||
for (i=0;i<num;i++) {
|
||||
snprintf(shadow_copy_data->labels[i], sizeof(SHADOW_COPY_LABEL), "@GMT-2003.08.05-12.%02u.00",i);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user