X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/641204dfbdb9fc870cdd2e7f9e3169a44693e7bf..19b1d5971c25819b3ccfe48cac16ff4e2daa6ec4:/projects/stargazer/plugins/configuration/sgconfig/parser_tariff.cpp?ds=inline diff --git a/projects/stargazer/plugins/configuration/sgconfig/parser_tariff.cpp b/projects/stargazer/plugins/configuration/sgconfig/parser_tariff.cpp index aeb1c783..9bac0294 100644 --- a/projects/stargazer/plugins/configuration/sgconfig/parser_tariff.cpp +++ b/projects/stargazer/plugins/configuration/sgconfig/parser_tariff.cpp @@ -1,6 +1,7 @@ -//#include +#include // snprintf #include +#include "stg/tariffs.h" #include "parser.h" const int pt_mega = 1024 * 1024; @@ -387,7 +388,10 @@ else snprintf(st, 50, "Time%d", j); if (strcasecmp(el, st) == 0) { - int h1, m1, h2, m2; + int h1 = 0; + int m1 = 0; + int h2 = 0; + int m2 = 0; if (ParseTariffTimeStr(attr[1], h1, m1, h2, m2) == 0) { td.dirPrice[j].hDay = h1;