[Olsr-dev] [PATCH v1 33/43] link_set: make sure link_changes is initialised

Ferry Huberts (spam-protected)
Wed Nov 11 17:22:06 CET 2015


From: Ferry Huberts <(spam-protected)>

Signed-off-by: Ferry Huberts <(spam-protected)>
---
 src/link_set.c | 2 +-
 src/main.c     | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/link_set.c b/src/link_set.c
index f13437e..7e8432f 100644
--- a/src/link_set.c
+++ b/src/link_set.c
@@ -61,7 +61,7 @@
 /* head node for all link sets */
 struct list_node link_entry_head;
 
-bool link_changes;                     /* is set if changes occur in MPRS set */
+bool link_changes = false; /* is set if changes occur in MPRS set */
 
 void
 signal_link_changes(bool val)
diff --git a/src/main.c b/src/main.c
index 93c3daa..70aff2a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -445,8 +445,6 @@ int main(int argc, char *argv[]) {
   signal(SIGUSR2, SIG_IGN);
 #endif /* _WIN32 */
 
-  link_changes = false;
-
   /* Starting scheduler */
   olsr_scheduler();
 
-- 
2.5.0




More information about the Olsr-dev mailing list