summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-10-21 13:06:21 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:45:06 -0500
commit568dd26ac783385c1c2a69a392f5a569ebdd13a2 (patch)
tree98ab505f479cd0c56c0dea4bb26e8742973af3b0 /source4/torture/rpc
parent29a3b138a2781f899ee32e278d683532a630b940 (diff)
downloadsamba-568dd26ac783385c1c2a69a392f5a569ebdd13a2.tar.gz
samba-568dd26ac783385c1c2a69a392f5a569ebdd13a2.tar.bz2
samba-568dd26ac783385c1c2a69a392f5a569ebdd13a2.zip
r11243: length and size can now be filled in automatically.
(This used to be commit 99444c129d08fe3e3e381b04c2da5ea5c9c10270)
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/winreg.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/source4/torture/rpc/winreg.c b/source4/torture/rpc/winreg.c
index a784337fb9..b0c2605bae 100644
--- a/source4/torture/rpc/winreg.c
+++ b/source4/torture/rpc/winreg.c
@@ -402,9 +402,7 @@ static BOOL test_EnumKey(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
printf("Testing EnumKey\n\n");
- class.length = 0;
- class.size = 0;
- class.name = NULL;
+ class.name = "";
r.in.handle = handle;
r.in.enum_index = 0;
@@ -414,8 +412,6 @@ static BOOL test_EnumKey(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
r.in.last_changed_time = &t;
do {
- name.length = 0;
- name.size = 1024;
name.name = NULL;
status = dcerpc_winreg_EnumKey(p, mem_ctx, &r);
@@ -536,8 +532,6 @@ static BOOL test_EnumValue(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
printf("testing EnumValue\n");
- name.length = 0;
- name.size = 1024;
name.name = "";
r.in.handle = handle;