summaryrefslogtreecommitdiff
path: root/source3/locking/locking.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/locking/locking.c')
-rw-r--r--source3/locking/locking.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c
index e8b6f3428f..e5a72d2208 100644
--- a/source3/locking/locking.c
+++ b/source3/locking/locking.c
@@ -100,14 +100,13 @@ BOOL is_locked(files_struct *fsp,connection_struct *conn,
static NTSTATUS do_lock(files_struct *fsp,connection_struct *conn, uint16 lock_pid,
SMB_BIG_UINT count,SMB_BIG_UINT offset,enum brl_type lock_type)
{
- NTSTATUS status;
+ NTSTATUS status = NT_STATUS_LOCK_NOT_GRANTED;
if (!lp_locking(SNUM(conn)))
return NT_STATUS_OK;
/* NOTE! 0 byte long ranges ARE allowed and should be stored */
-
DEBUG(10,("do_lock: lock type %s start=%.0f len=%.0f requested for file %s\n",
lock_type_name(lock_type), (double)offset, (double)count, fsp->fsp_name ));