summaryrefslogtreecommitdiffstats
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-09-18 13:10:20 +0200
committerStefan Metzmacher <metze@samba.org>2014-01-07 08:37:34 +0100
commit13ccc5b517e873fe61da4ed7c10b26717aa2fa65 (patch)
tree76a20a96ca8e109828290ebfef72b4d74f87dcc3 /source4
parent0dc30b9fe8243e9596e4016a20e1f7f19223ed1a (diff)
downloadsamba-13ccc5b517e873fe61da4ed7c10b26717aa2fa65.tar.gz
samba-13ccc5b517e873fe61da4ed7c10b26717aa2fa65.tar.xz
samba-13ccc5b517e873fe61da4ed7c10b26717aa2fa65.zip
s4:torture:spoolss_win: fix valgrind problem in test_EnumJobs()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/rpc/spoolss_win.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/torture/rpc/spoolss_win.c b/source4/torture/rpc/spoolss_win.c
index c64b20e225..b848bbdec7 100644
--- a/source4/torture/rpc/spoolss_win.c
+++ b/source4/torture/rpc/spoolss_win.c
@@ -278,7 +278,10 @@ static bool test_EnumJobs(struct torture_context *tctx,
torture_comment(tctx, "Test EnumJobs\n");
+ ZERO_STRUCT(ej);
ej.in.handle = handle;
+ ej.in.firstjob = 0;
+ ej.in.numjobs = 0;
ej.in.level = 2;
ej.in.buffer = &blob;
ej.in.offered = 1024;