Jelajahi Sumber

BUG: ParseFile should return false if there was a parse error.

Brad King 18 tahun lalu
induk
melakukan
9b0df0d692
1 mengubah file dengan 4 tambahan dan 0 penghapusan
  1. 4 0
      Source/cmListFileCache.cxx

+ 4 - 0
Source/cmListFileCache.cxx

@@ -139,6 +139,10 @@ bool cmListFile::ParseFile(const char* filename, bool requireProjectCommand)
       this->Functions.insert(this->Functions.begin(),project);
       }
     }
+  if(parseError)
+    {
+    return false;
+    }
   return true;
 }