mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 06:58:57 +01:00
Avoid dereference-of-casted-pointer
This commit is contained in:
@@ -107,7 +107,7 @@ public:
|
||||
template <typename Stream, typename Operation>
|
||||
inline void SerializationOp(Stream& s, Operation ser_action) {
|
||||
READWRITE(prevout);
|
||||
READWRITE(*(CScriptBase*)(&scriptSig));
|
||||
READWRITE(scriptSig);
|
||||
READWRITE(nSequence);
|
||||
}
|
||||
|
||||
@@ -147,7 +147,7 @@ public:
|
||||
template <typename Stream, typename Operation>
|
||||
inline void SerializationOp(Stream& s, Operation ser_action) {
|
||||
READWRITE(nValue);
|
||||
READWRITE(*(CScriptBase*)(&scriptPubKey));
|
||||
READWRITE(scriptPubKey);
|
||||
}
|
||||
|
||||
void SetNull()
|
||||
|
||||
Reference in New Issue
Block a user