]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:lib: rework a return expression into an if block
authorRalph Boehme <slow@samba.org>
Wed, 25 Sep 2019 15:53:29 +0000 (08:53 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 2 Oct 2019 08:01:39 +0000 (08:01 +0000)
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>
source3/lib/filename_util.c

index 8a16bacddbea52edb899ec14d88abf79b003a948..6bf29c2b0c9b7f42ca94b28d30f475bc23b9598f 100644 (file)
@@ -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;
 }
 
 /****************************************************************************