------------------------------------------------------------ revno: 5162 author: Stefan Götz <stefan.goetz@xxxxxxxxxxxxxxxxx> committer: Diego Biurrun <diego@xxxxxxxxxx> branch nick: fw-cache-port-cleanup timestamp: Mon 2010-11-15 22:37:09 +0100 message: Initialize variable to NULL upon declaration to avoid compiler warning/error about unitialized access. modified: firewall/port_bindings.c -- lp:hipl https://code.launchpad.net/~hipl-core/hipl/trunk Your team HIPL core team is subscribed to branch lp:hipl. To unsubscribe from this branch go to https://code.launchpad.net/~hipl-core/hipl/trunk/+edit-subscription
=== modified file 'firewall/port_bindings.c' --- firewall/port_bindings.c 2010-11-15 21:31:26 +0000 +++ firewall/port_bindings.c 2010-11-15 21:37:09 +0000 @@ -323,7 +323,7 @@ const unsigned int PORT_STR_OFFSET = 39; const unsigned int PORT_STR_LEN = 4; enum hip_port_binding result = HIP_PORT_INFO_IPV6UNBOUND; - const struct hip_mem_area *ma; + const struct hip_mem_area *ma = NULL; char *line; // the files /proc/net/{udp,tcp}6 are line-based and the line number of the // port to look up is not known in advance