BUG: Multi-line functions must also increment line number, not the pointer.

This commit is contained in:
Brad King 2002-12-11 18:20:10 -05:00
parent be66f58157
commit 8a275e798d
1 changed files with 1 additions and 1 deletions

View File

@ -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))