From 8a275e798dc6f895da4b56ee7a9b680a77f22aa4 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 11 Dec 2002 18:20:10 -0500 Subject: BUG: Multi-line functions must also increment line number, not the pointer. --- Source/cmListFileCache.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- cgit v0.12