s4-smbtorture: fix two valgrind warnings.
authorGünther Deschner <gd@samba.org>
Mon, 13 Apr 2009 18:44:19 +0000 (20:44 +0200)
committerGünther Deschner <gd@samba.org>
Mon, 13 Apr 2009 21:45:45 +0000 (23:45 +0200)
Guenther

source4/torture/rpc/spoolss.c

index f4181f4747e9bc5de9fcdab4fb518737f58436f1..b1889704a73901364128c2b818a23cede2e30030 100644 (file)
@@ -1122,6 +1122,7 @@ static bool test_AddJob(struct torture_context *tctx,
        r.in.handle = handle;
        r.in.offered = 0;
        r.out.needed = &needed;
+       r.in.buffer = r.out.buffer = NULL;
 
        torture_comment(tctx, "Testing AddJob\n");
 
@@ -1381,6 +1382,7 @@ static bool test_GetPrinterDataEx(struct torture_context *tctx,
        r.in.offered = 0;
        r.out.type = &type;
        r.out.needed = &needed;
+       r.out.buffer = NULL;
 
        torture_comment(tctx, "Testing GetPrinterDataEx\n");