Fix dead assign/init found by clang static analyzer

Value stored to 'pUser' (during its initialization) is never read
This commit is contained in:
J-P Nurmi
2015-02-25 11:50:06 +01:00
parent eb5aa75c16
commit 36a03ce29f
2 changed files with 2 additions and 5 deletions

View File

@@ -429,7 +429,6 @@ void CClient::UserCommand(CString& sLine) {
return;
}
CUser* pUser = m_pUser;
CIRCNetwork* pNetwork = m_pNetwork;
const CString sNick = sLine.Token(1);
@@ -441,7 +440,7 @@ void CClient::UserCommand(CString& sLine) {
return;
}
pUser = CZNC::Get().FindUser(sNick);
CUser* pUser = CZNC::Get().FindUser(sNick);
if (!pUser) {
PutStatus("No such user [" + sNick + "]");