]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/configuration/sgconfig/parser_tariffs.cpp
Ticket 37. void testobject::test<8>() function added for checking
[stg.git] / projects / stargazer / plugins / configuration / sgconfig / parser_tariffs.cpp
index b1564406f7bc7f9f51eec8ffdae7550f99d66f36..867181afda0e95631d1d6f459557e4f4b33351cf 100644 (file)
@@ -174,6 +174,8 @@ int CHG_TARIFF::Start(void *, const char * el, const char ** attr)
             const TARIFF * tariff = m_tariffs.FindByName(attr[1]);
             if (tariff != NULL)
                 td = tariff->GetTariffData();
+            else
+                return -1;
             return 0;
         }
     }