mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-15 23:55:03 +03:00
Optimized variable handling
This commit is contained in:
parent
7c4dcdfa4b
commit
16d0df0ff9
@ -111,9 +111,7 @@ std::unique_ptr<std::string> AnchoredSetVariable::resolveFirst(
|
|||||||
const std::string &key) {
|
const std::string &key) {
|
||||||
|
|
||||||
if (auto search = this->find(key); search != this->end()) {
|
if (auto search = this->find(key); search != this->end()) {
|
||||||
auto b = std::make_unique<std::string>();
|
return std::make_unique<std::string>(search->second->getValue());
|
||||||
b->assign(search->second->getValue());
|
|
||||||
return b;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user