summaryrefslogtreecommitdiffstats
path: root/Source/ctest.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-11-08 20:46:08 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-11-08 20:46:08 (GMT)
commitf5d95fb078ec48755762931fe2882ed1cbe1171e (patch)
tree945dca55d34b543db452c586aba0de863cf25cec /Source/ctest.cxx
parentc72462ffb1c75573e0d67a7101438a62bfc2fda1 (diff)
downloadCMake-f5d95fb078ec48755762931fe2882ed1cbe1171e.zip
CMake-f5d95fb078ec48755762931fe2882ed1cbe1171e.tar.gz
CMake-f5d95fb078ec48755762931fe2882ed1cbe1171e.tar.bz2
Complete rework of makefile generators expect trouble
Diffstat (limited to 'Source/ctest.cxx')
-rw-r--r--Source/ctest.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/ctest.cxx b/Source/ctest.cxx
index d17ce2c..5f4dd6b 100644
--- a/Source/ctest.cxx
+++ b/Source/ctest.cxx
@@ -195,6 +195,10 @@ void ctest::Initialize()
fin.getline(buffer, 1023);
buffer[1023] = 0;
std::string line = ::CleanString(buffer);
+ if(line.size() == 0)
+ {
+ continue;
+ }
while ( fin && (line[line.size()-1] == '\\') )
{
line = line.substr(0, line.size()-1);
@@ -207,10 +211,6 @@ void ctest::Initialize()
{
continue;
}
- if ( line.size() == 0 )
- {
- continue;
- }
std::string::size_type cpos = line.find_first_of(":");
if ( cpos == line.npos )
{