]> git.stg.codes - stg.git/commitdiff
Ticket 37. The construction else added to if (tariff != NULL) construction in the
authorElena Mamontova <helenh463@gmail.com>
Fri, 19 Aug 2016 11:41:10 +0000 (14:41 +0300)
committerElena Mamontova <helenh463@gmail.com>
Fri, 19 Aug 2016 11:41:10 +0000 (14:41 +0300)
CHG_TARIFF::Start() function.

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;
         }
     }