p2pd: fir compile warning, initialise ipHeader
authorFerry Huberts <ferry.huberts@pelagic.nl>
Sat, 9 Aug 2014 10:33:22 +0000 (12:33 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Sat, 9 Aug 2014 10:40:05 +0000 (12:40 +0200)
commit31e81b49468fadbf71b07e4b9ec6f9213107b966
treee2c584ba155bc400810b168960a817637b5c9907
parentb05d5b6c7a705ccd737ddacec1feaf44b377ce65
p2pd: fir compile warning, initialise ipHeader

When compiling with the address sanitiser, got

[CC] src/p2pd.c
src/p2pd.c: In function ‘DoP2pd’:
src/p2pd.c:629:18: warning: ‘ipHeader’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   nwords = header->ip_hl << 1;
                  ^
src/p2pd.c:663:14: note: ‘ipHeader’ was declared here
   struct ip *ipHeader;         /* The IP header inside the captured IP packet */
              ^

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/p2pd/src/p2pd.c