From 952b43d9235c7ce40564beb83fffa18abcf7c763 Mon Sep 17 00:00:00 2001 From: kichik Date: Sun, 29 Sep 2002 21:33:40 +0000 Subject: [PATCH] Now really doesn't crash :) git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1219 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/build.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/build.cpp b/Source/build.cpp index 8b67d00f..968ee66a 100644 --- a/Source/build.cpp +++ b/Source/build.cpp @@ -402,7 +402,7 @@ int CEXEBuild::add_string_main(const char *string, int process) // returns offse int idx = -1; char *cp = strdup(string+2); char *p = strchr(cp, ')'); - if (*p) { + if (p) { *p = 0; if (build_userlangstrings->find(cp, 0, &idx) < 0) idx = -1; } @@ -424,7 +424,7 @@ int CEXEBuild::add_string_uninst(const char *string, int process) // returns off int idx = -1; char *cp = strdup(string+2); char *p = strchr(cp, ')'); - if (*p) { + if (p) { *p = 0; if (ubuild_userlangstrings->find(cp, 0, &idx) < 0) idx = -1; }