Fixed a bug in the DTSC analyser

This commit is contained in:
Erik Zandvliet 2014-08-27 10:17:43 +02:00 committed by Thulinma
parent 98e2583b4e
commit b0aa5bd310

View file

@ -19,6 +19,10 @@ namespace Analysers {
///\return The return code of the analyser. ///\return The return code of the analyser.
int analyseDTSC(Util::Config conf){ int analyseDTSC(Util::Config conf){
DTSC::File F(conf.getString("filename")); DTSC::File F(conf.getString("filename"));
if (!F){
std::cerr << "Not a valid DTSC file" << std::endl;
return 1;
}
F.getMeta().toPrettyString(std::cout,0, 0x03); F.getMeta().toPrettyString(std::cout,0, 0x03);
int bPos = 0; int bPos = 0;