From: Maxim Mamontov Date: Mon, 21 Mar 2011 14:28:46 +0000 (+0200) Subject: Add variables initialization X-Git-Tag: 2.407-rc3~127 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/db8c640329f3b9015fd61f29c6773f996cbcfbfe Add variables initialization --- diff --git a/projects/stargazer/plugins/configuration/sgconfig/parser_tariff.cpp b/projects/stargazer/plugins/configuration/sgconfig/parser_tariff.cpp index c17a7713..389e8575 100644 --- a/projects/stargazer/plugins/configuration/sgconfig/parser_tariff.cpp +++ b/projects/stargazer/plugins/configuration/sgconfig/parser_tariff.cpp @@ -388,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;