]> git.stg.codes - stg.git/commitdiff
Initialize ip and mask fields while parsing config file in rscript
authorMaxim Mamontov <faust.madf@gmail.com>
Mon, 4 Apr 2011 18:40:32 +0000 (21:40 +0300)
committerMaxim Mamontov <faust.madf@gmail.com>
Mon, 4 Apr 2011 18:40:32 +0000 (21:40 +0300)
projects/stargazer/plugins/other/rscript/nrmap_parser.cpp

index 38caa1cfe2febd5f7422eee208c1d25a53899b7c..a0be4f98e0ae30b9440808f7f7ecce52d741bbbb 100644 (file)
@@ -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))
     {