mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-13 21:36:00 +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) {
|
||||
|
||||
if (auto search = this->find(key); search != this->end()) {
|
||||
auto b = std::make_unique<std::string>();
|
||||
b->assign(search->second->getValue());
|
||||
return b;
|
||||
return std::make_unique<std::string>(search->second->getValue());
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
|
Loading…
x
Reference in New Issue
Block a user