From 26d4d7543b3603b9c3c56d3982460303df766737 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 10 Oct 2007 01:54:07 +0000 Subject: r25596: It isn't valid to take the address of an array on the stack, and this isn't what memset wants anyway. Thanks to Indar Kriplani . Fixes bug 5010 Andrew Bartlett (This used to be commit fd309065bb697cfaaa595d060defee1761cf9523) --- source4/torture/basic/base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/torture/basic') diff --git a/source4/torture/basic/base.c b/source4/torture/basic/base.c index 2c5f335503..1415b4195f 100644 --- a/source4/torture/basic/base.c +++ b/source4/torture/basic/base.c @@ -415,7 +415,7 @@ static bool run_tcon_test(struct torture_context *tctx, struct smbcli_state *cli cnum1 = cli->tree->tid; vuid1 = cli->session->vuid; - memset(&buf, 0, 4); /* init buf so valgrind won't complain */ + memset(buf, 0, 4); /* init buf so valgrind won't complain */ if (smbcli_write(cli->tree, fnum1, 0, buf, 130, 4) != 4) { torture_comment(tctx, "initial write failed (%s)\n", smbcli_errstr(cli->tree)); return false; -- cgit