add static_analysis note (potential bug, use of uninitialized value)

This commit is contained in:
Ryan Tharp 2018-11-21 17:17:38 -08:00
parent 1c6031c677
commit 0b630f090c
1 changed files with 1 additions and 0 deletions

View File

@ -1233,6 +1233,7 @@ UTPSocket::write_outgoing_packet(size_t payload, uint flags,
last_rcv_win = get_rcv_window();
PacketFormatV1 *p1 = (PacketFormatV1 *)pkt->data;
// p1->ver_type; needs to be set!!
p1->set_version(1);
p1->set_type(flags);
p1->ext = 0;