Fix more cppcheck warning

This commit is contained in:
Ervin Hegedus 2025-04-20 19:31:20 +02:00
parent 8ae8374be5
commit b42602f400
No known key found for this signature in database
GPG Key ID: 5FA5BC3F5EC41F61
2 changed files with 2 additions and 3 deletions

View File

@ -619,6 +619,7 @@ class Transaction : public TransactionAnchoredVariables, public TransactionSecMa
RequestBodyProcessor::JSON *m_json;
int m_secRuleEngine;
int m_secXMLParseXmlIntoArgs;
std::string m_variableDuration;
std::map<std::string, std::string> m_variableEnvs;
@ -635,8 +636,6 @@ class Transaction : public TransactionAnchoredVariables, public TransactionSecMa
std::vector<std::shared_ptr<RequestBodyProcessor::MultipartPartTmpFile>> m_multipartPartTmpFiles;
int m_secXMLParseXmlIntoArgs;
private:
Transaction(ModSecurity *ms, RulesSet *rules, const char *id,

View File

@ -148,8 +148,8 @@ Transaction::Transaction(ModSecurity *ms, RulesSet *rules, const char *id,
m_json(nullptr),
#endif
m_secRuleEngine(RulesSetProperties::PropertyNotSetRuleEngine),
m_logCbData(logCbData),
m_secXMLParseXmlIntoArgs(rules->m_secXMLParseXmlIntoArgs),
m_logCbData(logCbData),
TransactionAnchoredVariables(this) {
m_variableUrlEncodedError.set("0", 0);
m_variableMscPcreError.set("0", 0);