batctl: fix false uninitialized variable warning when compiling with O2
Commit Message
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
---
functions.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Sunday, May 12, 2013 16:15:25 Marek Lindner wrote:
> Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
> ---
> functions.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied in revision 20cd68b.
Regards,
Marek
@@ -458,7 +458,7 @@ static void request_arp(uint32_t ipv4_addr)
static struct ether_addr *resolve_mac_from_arp(uint32_t ipv4_addr)
{
struct ether_addr mac_empty;
- struct ether_addr *mac_result = NULL, *mac_tmp;
+ struct ether_addr *mac_result = NULL, *mac_tmp = NULL;
struct sockaddr_in inet4;
int ret;
FILE *f;