b.a.t.m.a.n.lists.open-mesh.org archive mirror
 help / color / mirror / Atom feed
From: Marek Lindner <lindner_marek@yahoo.de>
To: b.a.t.m.a.n@lists.open-mesh.org
Cc: Marek Lindner <lindner_marek@yahoo.de>
Subject: [B.A.T.M.A.N.] [PATCH] batctl: fix false uninitialized variable warning when compiling with O2
Date: Sun, 12 May 2013 16:15:25 +0800	[thread overview]
Message-ID: <1368346525-15171-1-git-send-email-lindner_marek@yahoo.de> (raw)

Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
---
 functions.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-- 
1.7.10.4


             reply	other threads:[~2013-05-12  8:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-12  8:15 Marek Lindner [this message]
2013-05-18  9:49 ` [B.A.T.M.A.N.] [PATCH] batctl: fix false uninitialized variable warning when compiling with O2 Marek Lindner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1368346525-15171-1-git-send-email-lindner_marek@yahoo.de \
    --to=lindner_marek@yahoo.de \
    --cc=b.a.t.m.a.n@lists.open-mesh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).