summaryrefslogtreecommitdiff
path: root/src/modules/protocols/protocols.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/protocols/protocols.cpp')
-rw-r--r--src/modules/protocols/protocols.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/protocols/protocols.cpp b/src/modules/protocols/protocols.cpp
index 14abba9059..6fba0160f4 100644
--- a/src/modules/protocols/protocols.cpp
+++ b/src/modules/protocols/protocols.cpp
@@ -309,6 +309,9 @@ HICON Proto_GetIcon(PROTO_INTERFACE *ppro, int iconIndex)
PROTOACCOUNT* __fastcall Proto_GetAccount(const char* accName)
{
+ if (accName == NULL)
+ return NULL;
+
int idx;
PROTOACCOUNT temp;
temp.szModuleName = (char*)accName;