mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
Merge #9949: [bench] Avoid function call arguments which are pointers to uninitialized values
218d915
[bench] Avoid function call arguments which are pointers to uninitialized values (practicalswift)
Tree-SHA512: 68d62e9442094f171433291b7f13dba20fc7ead5fd7f2292e1eb97ae51aa2345d40224c4a65c2e5d3552802b3cd0f675a82b6181cf5b77e964355650b25089f0
This commit is contained in:
parent
3dcaf47494
commit
e5ecff6e8a
@ -20,7 +20,7 @@ static void DeserializeBlockTest(benchmark::State& state)
|
||||
CDataStream stream((const char*)raw_bench::block813851,
|
||||
(const char*)&raw_bench::block813851[sizeof(raw_bench::block813851)],
|
||||
SER_NETWORK, PROTOCOL_VERSION);
|
||||
char a;
|
||||
char a = '\0';
|
||||
stream.write(&a, 1); // Prevent compaction
|
||||
|
||||
while (state.KeepRunning()) {
|
||||
@ -35,7 +35,7 @@ static void DeserializeAndCheckBlockTest(benchmark::State& state)
|
||||
CDataStream stream((const char*)raw_bench::block813851,
|
||||
(const char*)&raw_bench::block813851[sizeof(raw_bench::block813851)],
|
||||
SER_NETWORK, PROTOCOL_VERSION);
|
||||
char a;
|
||||
char a = '\0';
|
||||
stream.write(&a, 1); // Prevent compaction
|
||||
|
||||
Consensus::Params params = Params(CBaseChainParams::MAIN).GetConsensus();
|
||||
|
Loading…
Reference in New Issue
Block a user