diff options
-rw-r--r-- | plugins/Import/src/import.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
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;
}
|