summaryrefslogtreecommitdiff
path: root/src/modules/protocols/protocols.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-08-07 21:30:49 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-08-07 21:30:49 +0000
commit8aefb2abf631ca117c3eb33be7eed5354a0c4f95 (patch)
tree2377dac0cdf7fe186be2c8bfe2dbbb1f7cd6df8d /src/modules/protocols/protocols.cpp
parente2760a3c40e97c14bee952f39b4381cd0b0c939c (diff)
crash fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@5620 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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;