From: Jeremy Allison Date: Fri, 23 Mar 2007 19:12:08 +0000 (+0000) Subject: r21948: Fix valgrind error in build farm samba3 smbtorture. We were X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~868 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e27d094620178f316bf79540164bbfe6ff3a3851;p=thirdparty%2Fsamba.git r21948: Fix valgrind error in build farm samba3 smbtorture. We were using an uninitialized buffer for read/write tests. Jeremy. --- diff --git a/source/torture/torture.c b/source/torture/torture.c index 5ab28438f21..054f1965c40 100644 --- a/source/torture/torture.c +++ b/source/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)