Skip to content

Commit a87fb6b

Browse files
committed
clang-tidy: Fix modernize-use-default-member-init in CScriptCheck
1 parent b4bed5c commit a87fb6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/validation.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,12 +314,12 @@ class CScriptCheck
314314
unsigned int nIn;
315315
unsigned int nFlags;
316316
bool cacheStore;
317-
ScriptError error;
317+
ScriptError error{SCRIPT_ERR_UNKNOWN_ERROR};
318318
PrecomputedTransactionData *txdata;
319319

320320
public:
321321
CScriptCheck(const CTxOut& outIn, const CTransaction& txToIn, unsigned int nInIn, unsigned int nFlagsIn, bool cacheIn, PrecomputedTransactionData* txdataIn) :
322-
m_tx_out(outIn), ptxTo(&txToIn), nIn(nInIn), nFlags(nFlagsIn), cacheStore(cacheIn), error(SCRIPT_ERR_UNKNOWN_ERROR), txdata(txdataIn) { }
322+
m_tx_out(outIn), ptxTo(&txToIn), nIn(nInIn), nFlags(nFlagsIn), cacheStore(cacheIn), txdata(txdataIn) { }
323323

324324
CScriptCheck(const CScriptCheck&) = delete;
325325
CScriptCheck& operator=(const CScriptCheck&) = delete;

0 commit comments

Comments
 (0)