Click here to Skip to main content
14,639,666 members
Rate this:
Please Sign up or sign in to vote.
See more:
What does this mean?
Warning 1 warning C4700: uninitialized local variable '_packet' used

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

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

You have not initialized _packet, means not assigned any value to _packet, before using it for assignment.
   
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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100