From: Elena Mamontova Date: Fri, 19 Aug 2016 11:41:10 +0000 (+0300) Subject: Ticket 37. The construction else added to if (tariff != NULL) construction in the X-Git-Tag: 2.409~114 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/5732b8372f36fe1ed7b45022cbf3d0795b946844 Ticket 37. The construction else added to if (tariff != NULL) construction in the CHG_TARIFF::Start() function. --- 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; } }