From: Otto Moerbeek Date: Tue, 13 Jun 2023 07:27:39 +0000 (+0200) Subject: Typo in var name spotted by @Habbie X-Git-Tag: rec-5.0.0-alpha1~180^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F12808%2Fhead;p=thirdparty%2Fpdns.git Typo in var name spotted by @Habbie --- diff --git a/pdns/arguments.cc b/pdns/arguments.cc index 32811e5117..a1081ddd70 100644 --- a/pdns/arguments.cc +++ b/pdns/arguments.cc @@ -202,19 +202,19 @@ string ArgvMap::configstring(bool running, bool full) // Affects parsing, should come first. help += formatOne(running, full, "ignore-unknown-settings", helpmap["ignore-unknown-settings"], defaultmap["ignore-unknown-settings"], d_params["ignore-unknown-settings"]); - for (const auto& helpietm : helpmap) { - if (d_typeMap[helpietm.first] == "Command") { + for (const auto& helpitem : helpmap) { + if (d_typeMap[helpitem.first] == "Command") { continue; } - if (helpietm.first == "ignore-unknown-settings") { + if (helpitem.first == "ignore-unknown-settings") { continue; } - if (defaultmap.count(helpietm.first) == 0) { - throw ArgException(string("Default for setting '") + helpietm.first + "' not set"); + if (defaultmap.count(helpitem.first) == 0) { + throw ArgException(string("Default for setting '") + helpitem.first + "' not set"); } - help += formatOne(running, full, helpietm.first, helpietm.second, defaultmap[helpietm.first], d_params[helpietm.first]); + help += formatOne(running, full, helpitem.first, helpitem.second, defaultmap[helpitem.first], d_params[helpitem.first]); } if (running) {