Blet and braces - make sure $1 is ""
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 4 May 2011 10:35:58 +0000 (10:35 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 4 May 2011 10:35:58 +0000 (10:35 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1099400 13f79535-47bb-0310-9956-ffa450edef68

res/tomcat.nsi

index c07f1f9..d0cef19 100644 (file)
@@ -634,6 +634,7 @@ FunctionEnd
 Function findJavaHome
 
   ClearErrors
+  StrCpy $1 ""
 
   ; Use the 64-bit registry first on 64-bit machines
   ExpandEnvStrings $0 "%PROGRAMW6432%"