fix incorrect memset
git-svn-id: file:///home/svn/framework3/trunk@4746 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
affc5fb958
commit
48e3edc7c9
|
@ -77,7 +77,7 @@ Packet *packet_create(PacketTlvType type, LPCSTR method)
|
|||
if (!(packet = (Packet *)malloc(sizeof(Packet))))
|
||||
break;
|
||||
|
||||
memset(packet, 0, sizeof(packet));
|
||||
memset(packet, 0, sizeof(Packet));
|
||||
|
||||
// Initialize the header length and message type
|
||||
packet->header.length = htonl(sizeof(TlvHeader));
|
||||
|
|
Loading…
Reference in New Issue