X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=TTherminator%2FTherminator%2FParser.cxx;h=2c485d7c71b13e79743c28b5fda06c82c0ee0f79;hp=b3b30ba8ba8bc9120cb436f244c6f0a6a3f3f534;hb=f5e2bbd0974f4ce93a2dc9026727f3c54a48eccf;hpb=83c8e4fe4a52d013361f356072161e2e0ac620cf;ds=inline diff --git a/TTherminator/Therminator/Parser.cxx b/TTherminator/Therminator/Parser.cxx index b3b30ba8ba8..2c485d7c71b 100644 --- a/TTherminator/Therminator/Parser.cxx +++ b/TTherminator/Therminator/Parser.cxx @@ -310,9 +310,11 @@ void Parser::ReadInput() if (!tThirdComma) exit(0); tRBracket = strchr(tThirdComma,']'); - if (!((tLBrackert != NULL) && (tFirstComma != NULL) && (tSecondComma != NULL) && ( tThirdComma != NULL) && (tRBracket!= NULL))) + if (!((tLBrackert != NULL) && (tFirstComma != NULL) && (tSecondComma != NULL) && ( tThirdComma != NULL) && (tRBracket!= NULL))) { PRINT_DEBUG_1("Malformed line!: " << str); - + exit(0); + } + char *tFather = new char[tFirstComma-tLBrackert]; strncpy(tFather, tLBrackert+1, tFirstComma-tLBrackert-1); char *tDaughter1 = new char[tSecondComma-tFirstComma];