mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-17 09:55:28 +03:00
Code cosmetics: reduce the amount of cppcheck warnings
This commit is contained in:
@@ -37,7 +37,7 @@ namespace transformations {
|
||||
std::string HtmlEntityDecode::evaluate(std::string value,
|
||||
Assay *assay) {
|
||||
char *tmp = strdup(value.c_str());
|
||||
int res = html_entities_decode_inplace((unsigned char *)tmp, value.size());
|
||||
html_entities_decode_inplace((unsigned char *)tmp, value.size());
|
||||
std::string ret("");
|
||||
ret.assign(tmp);
|
||||
free(tmp);
|
||||
|
||||
Reference in New Issue
Block a user