summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-10-10 01:54:07 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:08:02 -0500
commit26d4d7543b3603b9c3c56d3982460303df766737 (patch)
tree83c1263315a2c7b1b05737a1a9e0de7decb8846d /source4
parent761e06799699d6d2d3004b9678ab8e74b552a806 (diff)
downloadsamba-26d4d7543b3603b9c3c56d3982460303df766737.tar.gz
samba-26d4d7543b3603b9c3c56d3982460303df766737.tar.bz2
samba-26d4d7543b3603b9c3c56d3982460303df766737.zip
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 <indar.kriplani@gmail.com>. Fixes bug 5010 Andrew Bartlett (This used to be commit fd309065bb697cfaaa595d060defee1761cf9523)
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/basic/base.c2
1 files changed, 1 insertions, 1 deletions
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;