From 883ff688fe0cb7fed29875994656c702a9ab6ab0 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 17 Dec 2014 12:54:38 +0000 Subject: crash fix git-svn-id: http://svn.miranda-ng.org/main/trunk@11486 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Import/src/import.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/Import/src') 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() {} -- cgit v1.2.3