diff --git a/Source/cmListFileCache.cxx b/Source/cmListFileCache.cxx index fce13db34b..88cc228715 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))