Browse Source

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

Brad King 23 years ago
parent
commit
8a275e798d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/cmListFileCache.cxx

+ 1 - 1
Source/cmListFileCache.cxx

@@ -220,7 +220,7 @@ bool cmListFileCache::ParseFunction(std::ifstream& fin,
         // read lines until the end paren is found
         // read lines until the end paren is found
         if(fin.getline(inbuffer, BUFFER_SIZE ) )
         if(fin.getline(inbuffer, BUFFER_SIZE ) )
           {
           {
-          ++line;
+          if(line) { ++*line; }
           RemoveComments(inbuffer);
           RemoveComments(inbuffer);
           // Check for comment lines and ignore them.
           // Check for comment lines and ignore them.
           if(blankLine.find(inbuffer))
           if(blankLine.find(inbuffer))