From 94011c69f7d5982a471f93cff6880506132525ab Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 16 Oct 2014 21:07:35 +0000 Subject: crash fix git-svn-id: http://svn.miranda-ng.org/main/trunk@10805 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Import/src/import.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'plugins/Import') diff --git a/plugins/Import/src/import.cpp b/plugins/Import/src/import.cpp index 31c5b63d6f..e30610416f 100644 --- a/plugins/Import/src/import.cpp +++ b/plugins/Import/src/import.cpp @@ -198,9 +198,14 @@ void CopySettings(MCONTACT srcID, const char *szSrcModule, MCONTACT dstID, const static bool FindDestAccount(const char *szProto) { - for (int i = 0; i < arAccountMap.getCount(); i++) - if (!strcmp(arAccountMap[i].szDstAcc, szProto)) + for (int i = 0; i < arAccountMap.getCount(); i++) { + AccountMap &pam = arAccountMap[i]; + if (pam.szDstAcc == NULL) + continue; + + if (!strcmp(pam.szDstAcc, szProto)) return true; + } return false; } -- cgit v1.2.3