fix: minor dead store assignment warning in buildHandshakeMessage() (#1901)
This commit is contained in:
parent
d2241cda67
commit
e9a264f29d
|
@ -201,9 +201,8 @@ static bool buildHandshakeMessage(tr_handshake* handshake, uint8_t* buf)
|
|||
memcpy(walk, torrent_hash, SHA_DIGEST_LENGTH);
|
||||
walk += SHA_DIGEST_LENGTH;
|
||||
memcpy(walk, peer_id, PEER_ID_LEN);
|
||||
walk += PEER_ID_LEN;
|
||||
|
||||
TR_ASSERT(walk - buf == HANDSHAKE_SIZE);
|
||||
TR_ASSERT(walk + PEER_ID_LEN - buf == HANDSHAKE_SIZE);
|
||||
}
|
||||
|
||||
return success;
|
||||
|
|
Loading…
Reference in New Issue