summaryrefslogtreecommitdiffstats
path: root/Source/cmListFileCache.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2002-12-11 23:20:10 (GMT)
committerBrad King <brad.king@kitware.com>2002-12-11 23:20:10 (GMT)
commit8a275e798dc6f895da4b56ee7a9b680a77f22aa4 (patch)
treef7efd3ea9de971f6da9978dd21994f8b44ab8594 /Source/cmListFileCache.cxx
parentbe66f58157334bf963d7970b7424020653d8f0a3 (diff)
downloadCMake-8a275e798dc6f895da4b56ee7a9b680a77f22aa4.zip
CMake-8a275e798dc6f895da4b56ee7a9b680a77f22aa4.tar.gz
CMake-8a275e798dc6f895da4b56ee7a9b680a77f22aa4.tar.bz2
BUG: Multi-line functions must also increment line number, not the pointer.
Diffstat (limited to 'Source/cmListFileCache.cxx')
-rw-r--r--Source/cmListFileCache.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmListFileCache.cxx b/Source/cmListFileCache.cxx
index fce13db..88cc228 100644
--- a/Source/cmListFileCache.cxx
+++ b/Source/cmListFileCache.cxx
@@ -220,7 +220,7 @@ bool cmListFileCache::ParseFunction(std::ifstream& fin,
// read lines until the end paren is found
if(fin.getline(inbuffer, BUFFER_SIZE ) )
{
- ++line;
+ if(line) { ++*line; }
RemoveComments(inbuffer);
// Check for comment lines and ignore them.
if(blankLine.find(inbuffer))