Click here to Skip to main content
15,889,595 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
What does this mean?
Warning 1 warning C4700: uninitialized local variable '_packet' used

It's on this code snippet....
C++
char *_packet;
	TCPHEADER *tcp_header = (TCPHEADER *)_packet;
	BYTE flags = ( ntohs(tcp_header->info_ctrl) & 0x003F );
Posted

1 solution

You have not initialized _packet, means not assigned any value to _packet, before using it for assignment.
 
Share this answer
 
v2
Comments
Member 7766180 19-Sep-11 14:43pm    
Thank you! It worked perfectly!
Prerak Patel 19-Sep-11 23:20pm    
You are welcome.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900