mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 11:44:32 +03:00
Code cleanup: Initialize variables and others good practice
- initialize invalid_countin UrlDecode :: evaluate - Free resources before the process die (good practice)
This commit is contained in:
committed by
Felipe Zimmerle
parent
a278bb673a
commit
e4c822e663
@@ -40,7 +40,7 @@ UrlDecode::UrlDecode(std::string action)
|
||||
std::string UrlDecode::evaluate(std::string value,
|
||||
Transaction *transaction) {
|
||||
unsigned char *val = NULL;
|
||||
int invalid_count;
|
||||
int invalid_count = 0;
|
||||
int changed;
|
||||
|
||||
val = (unsigned char *) malloc(sizeof(char) * value.size() + 1);
|
||||
|
Reference in New Issue
Block a user