]> git.stg.codes - stg.git/commitdiff
Allow empty net-router map
authorMaxim Mamontov <faust.madf@gmail.com>
Wed, 28 Dec 2011 11:30:06 +0000 (13:30 +0200)
committerMaxim Mamontov <faust.madf@gmail.com>
Wed, 28 Dec 2011 11:30:06 +0000 (13:30 +0200)
projects/stargazer/plugins/other/rscript/rscript.cpp

index c9fcc549b84f31a83f688f63ce6ec4f84fd1f7e6..3a557a3088a1ec7c32b48260a5dfa1db1564b5bb 100644 (file)
@@ -157,13 +157,6 @@ if (nrMapParser.ReadFile(subnetFile))
 
 netRouters = nrMapParser.GetMap();
 
 
 netRouters = nrMapParser.GetMap();
 
-if (netRouters.empty())
-    {
-    errorStr = "Parameter(s) \'Subnet*\' not found.";
-    printfd(__FILE__, "Parameter(s) 'Subnet*' not found\n");
-    return -1;
-    }
-
 return 0;
 }
 //-----------------------------------------------------------------------------
 return 0;
 }
 //-----------------------------------------------------------------------------