From 5732b8372f36fe1ed7b45022cbf3d0795b946844 Mon Sep 17 00:00:00 2001 From: Elena Mamontova Date: Fri, 19 Aug 2016 14:41:10 +0300 Subject: [PATCH] Ticket 37. The construction else added to if (tariff != NULL) construction in the CHG_TARIFF::Start() function. --- .../stargazer/plugins/configuration/sgconfig/parser_tariffs.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; } } -- 2.44.2