]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TTherminator/Therminator/Parser.cxx
Fix Coverity
[u/mrichter/AliRoot.git] / TTherminator / Therminator / Parser.cxx
index 2c485d7c71b13e79743c28b5fda06c82c0ee0f79..88592cf3d3c20fed40b75d54e1759e766e524c22 100644 (file)
@@ -479,8 +479,11 @@ void Parser::ReadInput()
          
          tLBrackert = strchr(str,'[');
          tFirstComma = strchr(str,',');
+         if (!tFirstComma) exit(0);
          tSecondComma = strchr(tFirstComma+1,',');
+         if (!tSecondComma) exit(0);
          tThirdComma = strchr(tSecondComma+1,',');
+         if (!tThirdComma) exit(0);
          tFourthComma = strchr(tThirdComma+1,',');
          tRBracket = strchr(tThirdComma,']');