summaryrefslogtreecommitdiffstats
path: root/source/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-11-23 23:55:33 +0000
committerJeremy Allison <jra@samba.org>1998-11-23 23:55:33 +0000
commit81b90208910528a4ace683f30e39c54d8cfa12b7 (patch)
treed2c47204919477ef3fbaa794398e11a814a38df4 /source/smbd
parent403f53d696d17f34dd1afc035a72eda792dd20ea (diff)
downloadsamba-81b90208910528a4ace683f30e39c54d8cfa12b7.tar.gz
samba-81b90208910528a4ace683f30e39c54d8cfa12b7.tar.xz
samba-81b90208910528a4ace683f30e39c54d8cfa12b7.zip
Fixed -Wall -Wshadow warning.
Jeremy.
Diffstat (limited to 'source/smbd')
-rw-r--r--source/smbd/trans2.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/smbd/trans2.c b/source/smbd/trans2.c
index d71c23c87b7..7bfb046cc29 100644
--- a/source/smbd/trans2.c
+++ b/source/smbd/trans2.c
@@ -1658,9 +1658,8 @@ static int call_trans2setfilepathinfo(connection_struct *conn,
case SMB_SET_FILE_DISPOSITION_INFO: /* Set delete on close for open file. */
{
- if (tran_call == TRANSACT2_SETFILEINFO)
+ if ((tran_call == TRANSACT2_SETFILEINFO) && (fsp != NULL))
{
- files_struct *fsp = file_fsp(params,0);
BOOL delete_on_close = (CVAL(pdata,0) ? True : False);
if(fsp->is_directory)