* [B.A.T.M.A.N.] [PATCH] batctl: avoid uninitialized variable when compiling bisect
@ 2011-07-06 15:03 Marek Lindner
2011-07-08 23:02 ` Marek Lindner
0 siblings, 1 reply; 2+ messages in thread
From: Marek Lindner @ 2011-07-06 15:03 UTC (permalink / raw)
To: b.a.t.m.a.n; +Cc: Marek Lindner
Reported-by: Max Ip <ipmax2011@googlemail.com>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
---
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) {
--
1.7.5.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [B.A.T.M.A.N.] [PATCH] batctl: avoid uninitialized variable when compiling bisect
2011-07-06 15:03 [B.A.T.M.A.N.] [PATCH] batctl: avoid uninitialized variable when compiling bisect Marek Lindner
@ 2011-07-08 23:02 ` Marek Lindner
0 siblings, 0 replies; 2+ messages in thread
From: Marek Lindner @ 2011-07-08 23:02 UTC (permalink / raw)
To: The list for a Better Approach To Mobile Ad-hoc Networking
On Wednesday, July 06, 2011 17:03:57 Marek Lindner wrote:
> Reported-by: Max Ip <ipmax2011@googlemail.com>
> Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
> ---
> bisect.c | 3 +--
> 1 files changed, 1 insertions(+), 2 deletions(-)
Applied in revision 64f974f.
Regards,
Marek
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-07-08 23:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-06 15:03 [B.A.T.M.A.N.] [PATCH] batctl: avoid uninitialized variable when compiling bisect Marek Lindner
2011-07-08 23:02 ` Marek Lindner
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).