r21948: Fix valgrind error in build farm samba3 smbtorture. We were
authorJeremy Allison <jra@samba.org>
Fri, 23 Mar 2007 19:12:08 +0000 (19:12 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:18:51 +0000 (12:18 -0500)
using an uninitialized buffer for read/write tests.
Jeremy.
(This used to be commit e27d094620178f316bf79540164bbfe6ff3a3851)

source3/torture/torture.c

index 5ab28438f213ce82d251030bd27b03f06c96ff90..054f1965c40809477f94ffc2566081e54abff09d 100644 (file)
@@ -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)