diff options
Diffstat (limited to 'source/torture/torture.c')
-rw-r--r-- | source/torture/torture.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/torture/torture.c b/source/torture/torture.c index 5ab28438f21..925cac3f32c 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) @@ -1049,6 +1051,8 @@ static BOOL run_tcon_test(int dummy) char buf[4]; BOOL ret = True; + memset(buf, '\0', sizeof(buf)); + if (!torture_open_connection(&cli, 0)) { return False; } |