mirror of
https://github.com/znc/znc.git
synced 2026-05-07 22:04:46 +02:00
Fix dead assign/init found by clang static analyzer
Value stored to 'pUser' (during its initialization) is never read
This commit is contained in:
@@ -440,14 +440,12 @@ class CAdminMod : public CModule {
|
||||
const CString sUsername = sLine.Token(2);
|
||||
const CString sNetwork = sLine.Token(3);
|
||||
|
||||
CUser *pUser = NULL;
|
||||
CIRCNetwork *pNetwork = NULL;
|
||||
|
||||
if (sUsername.empty()) {
|
||||
pUser = GetUser();
|
||||
pNetwork = CModule::GetNetwork();
|
||||
} else {
|
||||
pUser = FindUser(sUsername);
|
||||
CUser* pUser = FindUser(sUsername);
|
||||
if (!pUser) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user