diff options
author | Volker Lendecke <vl@samba.org> | 2012-01-31 17:47:07 +0100 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2012-01-31 23:30:09 +0100 |
commit | a93cdacd1679d968862b6c82ea266f986d4c621e (patch) | |
tree | 9bb69c4a09b767ede65f30fdac4eb9b29c5cb2e2 /source3/smbd | |
parent | a1901b55cfa658f39a33d0ea120641f56453fe4e (diff) | |
download | samba-a93cdacd1679d968862b6c82ea266f986d4c621e.tar.gz samba-a93cdacd1679d968862b6c82ea266f986d4c621e.tar.bz2 samba-a93cdacd1679d968862b6c82ea266f986d4c621e.zip |
s3: Simplify an if-statement
is_ntfs_default_stream_smb_fname already contains all checks that
the variable "stream_name" gives us here.
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/open.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 3374fdb272..a94a02eb46 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -3832,7 +3832,7 @@ NTSTATUS create_file_default(connection_struct *conn, } } - if (stream_name && is_ntfs_default_stream_smb_fname(smb_fname)) { + if (is_ntfs_default_stream_smb_fname(smb_fname)) { int ret; smb_fname->stream_name = NULL; /* We have to handle this error here. */ |