summaryrefslogtreecommitdiff
path: root/source4/torture/libsmbclient/libsmbclient.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2019-09-04 11:32:58 +0200
committerJeremy Allison <jra@samba.org>2019-09-04 18:20:22 +0000
commit1e2d209494769cb23f10d3c8f8f294acdc9147f6 (patch)
treece306d3bc16a15c9d6b0186c4591d51d1fc9d421 /source4/torture/libsmbclient/libsmbclient.c
parente8ac8a357aec218807f1b750c004bc2f88aa4b08 (diff)
downloadsamba-1e2d209494769cb23f10d3c8f8f294acdc9147f6.tar.gz
torture: Fix the FreeBSD clang build
clang complained that "full_filename==NULL" is always false, because it's a normal stack variable. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Sep 4 18:20:22 UTC 2019 on sn-devel-184
Diffstat (limited to 'source4/torture/libsmbclient/libsmbclient.c')
-rw-r--r--source4/torture/libsmbclient/libsmbclient.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/libsmbclient/libsmbclient.c b/source4/torture/libsmbclient/libsmbclient.c
index 7bc407ac905..b74d87aabed 100644
--- a/source4/torture/libsmbclient/libsmbclient.c
+++ b/source4/torture/libsmbclient/libsmbclient.c
@@ -421,7 +421,7 @@ static bool torture_libsmbclient_readdirplus_seek(struct torture_context *tctx)
filename[i] = talloc_asprintf(tctx,
"test_readdirplus_%u.txt",
i);
- if (full_filename == NULL) {
+ if (filename[i] == NULL) {
torture_fail_goto(tctx,
done,
"talloc fail\n");
@@ -430,7 +430,7 @@ static bool torture_libsmbclient_readdirplus_seek(struct torture_context *tctx)
"%s/%s",
dname,
filename[i]);
- if (full_filename == NULL) {
+ if (full_filename[i] == NULL) {
torture_fail_goto(tctx,
done,
"talloc fail\n");