From 549d35e8b5ac9c52bfb028dfe73548a204167ca6 Mon Sep 17 00:00:00 2001 From: kichik Date: Sat, 6 Jun 2009 19:35:20 +0000 Subject: [PATCH] cosmetics git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5983 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/script.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Source/script.cpp b/Source/script.cpp index 800131f8..784c1f06 100644 --- a/Source/script.cpp +++ b/Source/script.cpp @@ -3136,7 +3136,7 @@ int CEXEBuild::doCommand(int which_token, LineParser &line) GrowBuf tmpstr; char str[MAX_LINELENGTH]; for (;;) - { + { tmpstr.resize(0); for (;;) { @@ -3154,8 +3154,8 @@ int CEXEBuild::doCommand(int which_token, LineParser &line) if (tmpstr.getlen() || endSlash) tmpstr.add(str,strlen(str)); if (!endSlash) break; - } - + } + if (!str[0] && !tmpstr.getlen()) break; // failed char *thisline=str; @@ -3165,7 +3165,6 @@ int CEXEBuild::doCommand(int which_token, LineParser &line) thisline=(char *)tmpstr.get(); } - DefineList *tlist = searchParseString(thisline,&line,parmOffs,ignCase,true); if (tlist && tlist->getnum()) {