From 3b8d451c740c8f49d5abad1496cbf4e4aa47819f Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Mon, 4 Apr 2011 21:40:32 +0300 Subject: [PATCH] Initialize ip and mask fields while parsing config file in rscript --- projects/stargazer/plugins/other/rscript/nrmap_parser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/stargazer/plugins/other/rscript/nrmap_parser.cpp b/projects/stargazer/plugins/other/rscript/nrmap_parser.cpp index 38caa1cf..a0be4f98 100644 --- a/projects/stargazer/plugins/other/rscript/nrmap_parser.cpp +++ b/projects/stargazer/plugins/other/rscript/nrmap_parser.cpp @@ -96,8 +96,8 @@ if (pos == std::string::npos) std::string subnet(line.substr(0, pos)); // xxx.xxx.xxx.xxx/yy -uint32_t ip; -uint32_t mask; +uint32_t ip = 0; +uint32_t mask = 0; if (ParseNet(subnet, ip, mask)) { -- 2.43.2