Fix some minor issues

E.g. a gcc warning about an uninitialized variable.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter
2011-08-21 15:58:01 +02:00
parent f44f307b24
commit 5f53c3509f
4 changed files with 59 additions and 49 deletions

View File

@@ -728,12 +728,12 @@ public:
l["Description"] = Info.GetDescription();
l["Wiki"] = Info.GetWikiPage();
if (pUser && pUser->GetModules().FindModule(Info.GetName())) {
CModule *pModule = pUser->GetModules().FindModule(Info.GetName());
if (pModule) {
l["Checked"] = "true";
l["Args"] = pModule->GetArgs();
}
CModule *pModule = NULL;
if (pUser)
pModule = pUser->GetModules().FindModule(Info.GetName());
if (pModule) {
l["Checked"] = "true";
l["Args"] = pModule->GetArgs();
}
if (!spSession->IsAdmin() && pUser && pUser->DenyLoadMod()) {