From e716924590150faf1b0ec46a64c84d37eef0d526 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 28 Jun 2010 11:19:18 +0200 Subject: s3-smbd: Make sure that status is initialized when used. Found by clang-analyzer. --- source3/smbd/smb2_lock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit