From patchwork Wed Jul 6 15:03:57 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Lindner X-Patchwork-Id: 1214 Return-Path: Received: from nm17-vm0.bullet.mail.ukl.yahoo.com (nm17-vm0.bullet.mail.ukl.yahoo.com [217.146.183.93]) by open-mesh.org (Postfix) with SMTP id B906A15439B for ; Wed, 6 Jul 2011 17:04:07 +0200 (CEST) Authentication-Results: open-mesh.org; dkim=pass (1024-bit key) header.i=@yahoo.de; dkim-adsp=none Received: from [217.146.183.215] by nm17.bullet.mail.ukl.yahoo.com with NNFMP; 06 Jul 2011 15:04:07 -0000 Received: from [217.146.183.60] by tm8.bullet.mail.ukl.yahoo.com with NNFMP; 06 Jul 2011 15:04:07 -0000 Received: from [127.0.0.1] by omp1029.mail.ukl.yahoo.com with NNFMP; 06 Jul 2011 15:04:07 -0000 X-Yahoo-Newman-Id: 83766.81659.bm@omp1029.mail.ukl.yahoo.com Received: (qmail 20525 invoked from network); 6 Jul 2011 15:04:07 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.de; h=DKIM-Signature:Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:From:To:Cc:Subject:Date:Message-Id:X-Mailer; b=Ga67KtHtzDjmGmM8i25uKu6LtiE/o6AJ5O6Ng6J5vFJ2TIMHtpXe58F1Gov+mPur7W/R1CH8fI4Ph3q3Go8FqPzKHr6hVzR6CJmQjNah4bbx7fG6W2ei2da2Sp/YA8TjSNN/JcuoUnqvDgmA0Nk2QD5R9g0T660sRQ7CpjAvgRw= ; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s1024; t=1309964647; bh=XL5XQRduuTtLeic/iH8RJ72klZ++XrKaUONVdx7Pi0s=; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:From:To:Cc:Subject:Date:Message-Id:X-Mailer; b=QFSz6Gf6dY0WoEvhXqXZ6E3FcIiYy5nMCbiw5y7MInmYdY9flhvmxa6e6kF1p8bOXe1bAKlD7ekozY+pnIghz1bDlqaqKoHYnH4pSPLHnF1HW+Rk4g15CzfmgJXmOY8x7O19QapZO7l/BdGQxfU4rZ+qMPQprmtIwzlZJXWgIaY= Received: from localhost (lindner_marek@90.35.97.9 with plain) by smtp124.mail.ukl.yahoo.com with SMTP; 06 Jul 2011 15:04:06 +0000 GMT X-Yahoo-SMTP: tW.h3tiswBBMXO2coYcbPigGD5Lt6zY_.Zc- X-YMail-OSG: _MBLZ_kVM1khxVTlfyIem0ZfMb0tSI.f0KoTPUk7iAWlN3Z rA82F.UMqYRpJUtpgIYASILspq1Sd8iwm.RrPOrGqDl33xkjO_zB5IJIlKcb sLbku_gbQjv5QgGWFUiAC_1nqpMIYM1L4bZ7o27wH1QnL5Nqf58o_ozE9IB6 7ljX.W5ynab7WQOlJS6IjfbR_vU_28IMhCQJgI6TNwKLoUHEpqi4Kb2XwDxZ qMi24R04USzb8Ig5LMPyP5bOtKL1bcSoR0AiydPNocgXtaChRtVm9oKq2hx4 Q4LN1NWCVCEWT2Y7VdYxTOVPE7fcdsYoax.xvgwEqbyJB3gJyQiXCaxO53LZ ofw-- X-Yahoo-Newman-Property: ymail-3 From: Marek Lindner To: b.a.t.m.a.n@lists.open-mesh.org Date: Wed, 6 Jul 2011 17:03:57 +0200 Message-Id: <1309964637-23767-1-git-send-email-lindner_marek@yahoo.de> X-Mailer: git-send-email 1.7.5.3 Cc: Marek Lindner Subject: [B.A.T.M.A.N.] [PATCH] batctl: avoid uninitialized variable when compiling bisect X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jul 2011 15:04:08 -0000 Reported-by: Max Ip Signed-off-by: Marek Lindner --- bisect.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/bisect.c b/bisect.c index f6f171e..d3789aa 100644 --- a/bisect.c +++ b/bisect.c @@ -194,7 +194,7 @@ static int routing_table_new(char *orig, char *next_hop, char *old_next_hop, cha struct seqno_event *seqno_event; struct rt_table *rt_table, *prev_rt_table = NULL; struct rt_hist *rt_hist; - int i, j; + int i, j = -1; if (!curr_bat_node) { fprintf(stderr, "Routing table change without preceding OGM - skipping"); @@ -331,7 +331,6 @@ static int routing_table_new(char *orig, char *next_hop, char *old_next_hop, cha } if (prev_rt_table) { - j = -1; for (i = 0; i < prev_rt_table->num_entries; i++) { /* if we have a previously deleted item don't copy it over */ if (prev_rt_table->entries[i].flags == RT_FLAG_DELETE) {