Browse Source

BUG: fix failing test

Bill Hoffman 17 years ago
parent
commit
afdc33dbb8
1 changed files with 4 additions and 3 deletions
  1. 4 3
      Source/cmListCommand.cxx

+ 4 - 3
Source/cmListCommand.cxx

@@ -259,11 +259,12 @@ bool cmListCommand::HandleAppendCommand(std::vector<std::string> const& args)
   std::string listString;
   this->GetListString(listString, listName.c_str());
   size_t cc;
-  const char* sep = "";
   for ( cc = 2; cc < args.size(); ++ cc )
     {
-    listString += sep;
-    sep = ";";
+    if(listString.size())
+      {
+      listString += ";";
+      }
     listString += args[cc];
     }