diff options
author | Andrew Bartlett <abartlet@samba.org> | 2007-10-10 01:54:07 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:08:02 -0500 |
commit | 26d4d7543b3603b9c3c56d3982460303df766737 (patch) | |
tree | 83c1263315a2c7b1b05737a1a9e0de7decb8846d /source4/torture/basic | |
parent | 761e06799699d6d2d3004b9678ab8e74b552a806 (diff) | |
download | samba-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/torture/basic')
-rw-r--r-- | source4/torture/basic/base.c | 2 |
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; |