batctl: fix false uninitialized variable warning when compiling with O2

Message ID 1368346525-15171-1-git-send-email-lindner_marek@yahoo.de (mailing list archive)
State Accepted, archived
Commit 20cd68b1b6f5b03e23c3bfdf4449201e1d31a5d6
Headers

Commit Message

Marek Lindner May 12, 2013, 8:15 a.m. UTC
  Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
---
 functions.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Marek Lindner May 18, 2013, 9:49 a.m. UTC | #1
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
  

Patch

diff --git a/functions.c b/functions.c
index a025395..cc05a48 100644
--- a/functions.c
+++ b/functions.c
@@ -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;