Skip to content

Commit b42602f

Browse files
committed
Fix more cppcheck warning
1 parent 8ae8374 commit b42602f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

headers/modsecurity/transaction.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,7 @@ class Transaction : public TransactionAnchoredVariables, public TransactionSecMa
619619
RequestBodyProcessor::JSON *m_json;
620620

621621
int m_secRuleEngine;
622+
int m_secXMLParseXmlIntoArgs;
622623

623624
std::string m_variableDuration;
624625
std::map<std::string, std::string> m_variableEnvs;
@@ -635,8 +636,6 @@ class Transaction : public TransactionAnchoredVariables, public TransactionSecMa
635636

636637
std::vector<std::shared_ptr<RequestBodyProcessor::MultipartPartTmpFile>> m_multipartPartTmpFiles;
637638

638-
int m_secXMLParseXmlIntoArgs;
639-
640639
private:
641640

642641
Transaction(ModSecurity *ms, RulesSet *rules, const char *id,

src/transaction.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ Transaction::Transaction(ModSecurity *ms, RulesSet *rules, const char *id,
148148
m_json(nullptr),
149149
#endif
150150
m_secRuleEngine(RulesSetProperties::PropertyNotSetRuleEngine),
151-
m_logCbData(logCbData),
152151
m_secXMLParseXmlIntoArgs(rules->m_secXMLParseXmlIntoArgs),
152+
m_logCbData(logCbData),
153153
TransactionAnchoredVariables(this) {
154154
m_variableUrlEncodedError.set("0", 0);
155155
m_variableMscPcreError.set("0", 0);

0 commit comments

Comments
 (0)