From 61f602d66876414aadee14cf4be68f07ec9eaad3 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Tue, 20 Apr 2004 18:28:23 -0400 Subject: [PATCH] BUG: If the line ends without new-line character, Split should still return something --- Source/cmSystemTools.cxx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 267dbd3e79..a6872f168f 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -1106,16 +1106,13 @@ cmSystemTools::FileFormat cmSystemTools::GetFileFormat(const char* cext) bool cmSystemTools::Split(const char* s, std::vector& l) { std::vector temp; - if(!Superclass::Split(s, temp)) - { - return false; - } + bool res = Superclass::Split(s, temp); for(std::vector::const_iterator i = temp.begin(); i != temp.end(); ++i) { l.push_back(*i); } - return true; + return res; } std::string cmSystemTools::ConvertToOutputPath(const char* path)