]> granicus.if.org Git - pdns/commitdiff
Trim variable name when parsing configuration
authorAki Tuomi <cmouse@desteem.org>
Sun, 4 May 2014 18:13:58 +0000 (21:13 +0300)
committerAki Tuomi <cmouse@desteem.org>
Tue, 3 Jun 2014 08:16:45 +0000 (11:16 +0300)
pdns/arguments.cc

index 0200140b1bdd96e387cb5d9a382ca347dadc3e96..9fcc5a0b753de37cd69cc6696d2f9ac86a133021 100644 (file)
@@ -326,6 +326,8 @@ void ArgvMap::parseOne(const string &arg, const string &parseOnly, bool lax)
   }
   else // command
     d_cmds.push_back(arg);
+  boost::trim(var);
 
   if(var!="" && (parseOnly.empty() || var==parseOnly)) {
     pos=val.find_first_not_of(" \t");  // strip leading whitespace