From f61f37963eefa84a39cd3ed6cbd84472e7bf481f Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Wed, 31 Dec 2014 23:56:13 +0000 Subject: more correct check git-svn-id: http://svn.miranda-ng.org/main/trunk@11709 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Non-IM Contact/src/namereplacing.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/Non-IM Contact/src') diff --git a/plugins/Non-IM Contact/src/namereplacing.cpp b/plugins/Non-IM Contact/src/namereplacing.cpp index 690402cd0c..5203b48931 100644 --- a/plugins/Non-IM Contact/src/namereplacing.cpp +++ b/plugins/Non-IM Contact/src/namereplacing.cpp @@ -203,10 +203,10 @@ int findChar(char* FileContents[], const char* string, int linesInFile,int start // do the compare("A","B","X","Y") void checkStringForcompare(char *str) { - char *A,*B, *X, *Y , *newStr = (char*)malloc(strlen(str)), *copyOfStr = _strdup(str); + if (!strstr(str, "compare(\"")) return; + char *A, *B, *X, *Y, *newStr = (char*)malloc(strlen(str)), *copyOfStr = _strdup(str); unsigned int i, j = 0, s = (int)strlen(str); newStr[0] = '\0'; - if (!strstr(str,"compare(\"")) return; for (i=0; i