From: Ralph Boehme Date: Wed, 25 Sep 2019 15:53:29 +0000 (-0700) Subject: s3:lib: rework a return expression into an if block X-Git-Tag: talloc-2.3.1~532 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d7dc85990a177954925644f9ff332b3481a03cc7;p=thirdparty%2Fsamba.git 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 Reviewed-by: Jeremy Allison --- 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; } /****************************************************************************