X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/641204dfbdb9fc870cdd2e7f9e3169a44693e7bf..c94bf8a43922c544b485e50ea1f37f41a45821f5:/projects/stargazer/plugins/other/rscript/nrmap_parser.cpp?ds=sidebyside

diff --git a/projects/stargazer/plugins/other/rscript/nrmap_parser.cpp b/projects/stargazer/plugins/other/rscript/nrmap_parser.cpp
index 38caa1cf..308d5d05 100644
--- a/projects/stargazer/plugins/other/rscript/nrmap_parser.cpp
+++ b/projects/stargazer/plugins/other/rscript/nrmap_parser.cpp
@@ -31,18 +31,10 @@
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <arpa/inet.h>
-#include "common.h"
 
+#include "stg/common.h"
 #include "nrmap_parser.h"
 
-NRMapParser::NRMapParser()
-{
-}
-
-NRMapParser::~NRMapParser()
-{
-}
-
 bool NRMapParser::ReadFile(const std::string & fileName)
 {
 std::ifstream source(fileName.c_str());
@@ -96,8 +88,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))
     {