浏览代码

BUG: add check for missing ) on function

Bill Hoffman 25 年之前
父节点
当前提交
c9c08bca66
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      Source/cmSystemTools.cxx

+ 6 - 0
Source/cmSystemTools.cxx

@@ -242,6 +242,12 @@ bool cmSystemTools::ParseFunction(std::ifstream& fin,
             cmSystemTools::GetArguments(line, arguments);
             }
           }
+	else
+	  {
+	  cmSystemTools::Error("Parse error in read function missing end )",
+			       inbuffer);
+	  return false;
+	  }
         }
       return true;
       }