summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2010-06-28 11:19:18 +0200
committerAndreas Schneider <asn@samba.org>2010-06-28 12:56:13 +0200
commite716924590150faf1b0ec46a64c84d37eef0d526 (patch)
tree5062b750bb4f6473cfc4fa0edb4714da79582fcc
parent6ac050f73f7be0d49003e4c9053826620f5e3c6c (diff)
downloadsamba-e716924590150faf1b0ec46a64c84d37eef0d526.tar.gz
samba-e716924590150faf1b0ec46a64c84d37eef0d526.tar.bz2
samba-e716924590150faf1b0ec46a64c84d37eef0d526.zip
s3-smbd: Make sure that status is initialized when used.
Found by clang-analyzer.
-rw-r--r--source3/smbd/smb2_lock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/smb2_lock.c b/source3/smbd/smb2_lock.c
index 94000b2df4..51cb5c6345 100644
--- a/source3/smbd/smb2_lock.c
+++ b/source3/smbd/smb2_lock.c
@@ -720,7 +720,7 @@ static void remove_pending_lock(struct smbd_smb2_lock_state *state,
static void reprocess_blocked_smb2_lock(struct smbd_smb2_request *smb2req,
struct timeval tv_curr)
{
- NTSTATUS status;
+ NTSTATUS status = NT_STATUS_UNSUCCESSFUL;
struct blocking_lock_record *blr = NULL;
struct smbd_smb2_lock_state *state = NULL;
files_struct *fsp = NULL;