Ticket 52. Definition of the tariff pointer added to the ticket52
authorElena Mamontova <helenh463@gmail.com>
Mon, 12 Feb 2018 11:07:33 +0000 (13:07 +0200)
committerElena Mamontova <helenh463@gmail.com>
Mon, 12 Feb 2018 11:07:33 +0000 (13:07 +0200)
USER_IMPL::Init() function.

projects/stargazer/user_impl.cpp

index d6c749b..d530108 100644 (file)
@@ -222,6 +222,7 @@ void USER_IMPL::Init()
 {
 password = "*_EMPTY_PASSWORD_*";
 tariffName = NO_TARIFF_NAME;
+tariff = tariffs->FindByName(tariffName);
 ips = StrToIPS("*");
 lastWriteStat = stgTime + random() % settings->GetStatWritePeriod();
 lastWriteDetailedStat = stgTime;