]> granicus.if.org Git - pdns/commitdiff
since we re-parse our commandline in rec_control we've been doubling the commands...
authorBert Hubert <bert.hubert@netherlabs.nl>
Sat, 15 Dec 2012 14:46:21 +0000 (14:46 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Sat, 15 Dec 2012 14:46:21 +0000 (14:46 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2992 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/arguments.cc

index 3e281197487cc1bf776de4092a9211d4e21b404e..b9f2fece43fb5d914595783df72ec87ac2f161d2 100644 (file)
@@ -327,6 +327,7 @@ const vector<string>&ArgvMap::getCommands()
 
 void ArgvMap::parse(int &argc, char **argv, bool lax)
 {
+  d_cmds.clear();
   for(int n=1;n<argc;n++) {
     parseOne(argv[n],"",lax);
   }