summaryrefslogtreecommitdiffstats
path: root/source/torture
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-03-23 19:12:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:51 -0500
commite27d094620178f316bf79540164bbfe6ff3a3851 (patch)
tree3a69a43d7752f8d66043ae0963033ebc76d91217 /source/torture
parent6eed92dfd4da1f9979831bec8e0dcdee33fb53b4 (diff)
downloadsamba-e27d094620178f316bf79540164bbfe6ff3a3851.tar.gz
samba-e27d094620178f316bf79540164bbfe6ff3a3851.tar.xz
samba-e27d094620178f316bf79540164bbfe6ff3a3851.zip
r21948: Fix valgrind error in build farm samba3 smbtorture. We were
using an uninitialized buffer for read/write tests. Jeremy.
Diffstat (limited to 'source/torture')
-rw-r--r--source/torture/torture.c2
1 files changed, 2 insertions, 0 deletions
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)