summaryrefslogtreecommitdiff
path: root/plugins/Import
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-12-17 12:54:38 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-12-17 12:54:38 +0000
commit883ff688fe0cb7fed29875994656c702a9ab6ab0 (patch)
treea32237c3f695d38d372fd4beb7b9916e67d8f91b /plugins/Import
parent697d567ec7a9679ec0a767f5f48f6ce4a9067605 (diff)
crash fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@11486 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Import')
-rw-r--r--plugins/Import/src/import.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Import/src/import.cpp b/plugins/Import/src/import.cpp
index 147198b265..1e03938554 100644
--- a/plugins/Import/src/import.cpp
+++ b/plugins/Import/src/import.cpp
@@ -26,12 +26,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
struct AccountMap
{
- AccountMap(const char *_src, const TCHAR *_srcName, PROTOACCOUNT *_dst, const char *szBaseProto) :
+ AccountMap(const char *_src, const TCHAR *_srcName, PROTOACCOUNT *_dst, const char *_szBaseProto) :
szSrcAcc(mir_strdup(_src)),
tszSrcName(mir_tstrdup(_srcName)),
- szDstAcc(mir_strdup(_dst->szModuleName)),
+ szDstAcc((_dst == NULL) ? NULL : mir_strdup(_dst->szModuleName)),
pa(_dst),
- szBaseProto(mir_strdup(szBaseProto))
+ szBaseProto(mir_strdup(_szBaseProto))
{}
~AccountMap() {}