Fix valgrind build

This commit is contained in:
sfc-gh-tclinkenbeard 2020-07-08 10:23:32 -07:00
parent cd75cce8fe
commit f5118c42c0
1 changed files with 1 additions and 1 deletions

View File

@ -1382,7 +1382,7 @@ static ReliablePacket* sendPacket(TransportData* self, Reference<Peer> peer, ISe
SendBuffer *checkbuf = pb;
while (checkbuf) {
int size = checkbuf->bytes_written;
const uint8_t* data = checkbuf->data;
const uint8_t* data = checkbuf->data();
VALGRIND_CHECK_MEM_IS_DEFINED(data, size);
checkbuf = checkbuf -> next;
}