summaryrefslogtreecommitdiff
path: root/Source/cmListCommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmListCommand.cxx')
-rw-r--r--Source/cmListCommand.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmListCommand.cxx b/Source/cmListCommand.cxx
index e81cbe72a4..0f25ad1201 100644
--- a/Source/cmListCommand.cxx
+++ b/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];
}