summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2019-09-25 08:53:29 -0700
committerRalph Boehme <slow@samba.org>2019-10-02 08:01:39 +0000
commitd7dc85990a177954925644f9ff332b3481a03cc7 (patch)
tree8a875ed8917716f4a36ced874a7e4cf6490fd414 /source3/lib
parent49a754b82d33fb523cda4151a865584ae52a2e2f (diff)
downloadsamba-d7dc85990a177954925644f9ff332b3481a03cc7.tar.gz
s3:lib: rework a return expression into an if block
Needed to add additional stuff after the if block in the next commit. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14137 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/filename_util.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/lib/filename_util.c b/source3/lib/filename_util.c
index 8a16bacddbe..6bf29c2b0c9 100644
--- a/source3/lib/filename_util.c
+++ b/source3/lib/filename_util.c
@@ -253,7 +253,11 @@ bool is_ntfs_stream_smb_fname(const struct smb_filename *smb_fname)
return false;
}
- return smb_fname->stream_name != NULL;
+ if (smb_fname->stream_name == NULL) {
+ return false;
+ }
+
+ return true;
}
/****************************************************************************