X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/fb083109b84a9f198b4949892b0b816801e1d196..4c7f533b6d5d251a621de49f5b7eb965de739130:/projects/stargazer/plugins/configuration/sgconfig/parser_tariffs.cpp?ds=sidebyside diff --git a/projects/stargazer/plugins/configuration/sgconfig/parser_tariffs.cpp b/projects/stargazer/plugins/configuration/sgconfig/parser_tariffs.cpp index b1564406..867181af 100644 --- a/projects/stargazer/plugins/configuration/sgconfig/parser_tariffs.cpp +++ b/projects/stargazer/plugins/configuration/sgconfig/parser_tariffs.cpp @@ -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; } }