]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/configuration/sgconfig/parser_tariff.cpp
Add variables initialization
[stg.git] / projects / stargazer / plugins / configuration / sgconfig / parser_tariff.cpp
index e3b265206405c2e8a63942c9366d70bd3eed3703..389e85750e28a50d725e9853f5fd60846319c3fc 100644 (file)
@@ -2,6 +2,7 @@
 #include <cstring>
 
 #include "parser.h"
+#include "tariffs.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;