From 16a029f7f34f9bb4f0ee71961ad3064e210db8e1 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 23 Mar 2007 19:12:08 +0000 Subject: r21948: Fix valgrind error in build farm samba3 smbtorture. We were using an uninitialized buffer for read/write tests. Jeremy. (This used to be commit e27d094620178f316bf79540164bbfe6ff3a3851) --- source3/torture/torture.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/torture/torture.c') diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 5ab28438f2..054f1965c4 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -369,6 +369,8 @@ static BOOL rw_torture(struct cli_state *c) char buf[1024]; BOOL correct = True; + memset(buf, '\0', sizeof(buf)); + fnum2 = cli_open(c, lockfname, O_RDWR | O_CREAT | O_EXCL, DENY_NONE); if (fnum2 == -1) -- cgit