Skip to content

Commit

Permalink
Initialize nTime to zero
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenova7 committed Feb 24, 2019
1 parent ff42ef3 commit 31d01ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/primitives/transaction.h
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ class CTransaction
// and bypass the constness. This is safe, as they update the entire
// structure, including the hash.
const int32_t nVersion;
const unsigned int nTime;
const unsigned int nTime = 0;
std::vector<CTxIn> vin;
std::vector<CTxOut> vout;
const uint32_t nLockTime;
Expand Down Expand Up @@ -339,7 +339,7 @@ class CTransaction
struct CMutableTransaction
{
int32_t nVersion;
unsigned int nTime;
unsigned int nTime = 0;
std::vector<CTxIn> vin;
std::vector<CTxOut> vout;
uint32_t nLockTime;
Expand Down

0 comments on commit 31d01ec

Please sign in to comment.