diff options
author | Brad King <brad.king@kitware.com> | 2002-12-11 23:20:10 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2002-12-11 23:20:10 (GMT) |
commit | 8a275e798dc6f895da4b56ee7a9b680a77f22aa4 (patch) | |
tree | f7efd3ea9de971f6da9978dd21994f8b44ab8594 /Source/cmListFileCache.cxx | |
parent | be66f58157334bf963d7970b7424020653d8f0a3 (diff) | |
download | CMake-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.cxx | 2 |
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)) |