[Olsr-dev] [PATCH v1 010/115] jsoninfo: initialise uuidfile as well

Ferry Huberts (spam-protected)
Wed Dec 2 21:27:43 CET 2015


From: Ferry Huberts <(spam-protected)>

Signed-off-by: Ferry Huberts <(spam-protected)>
---
 lib/jsoninfo/src/olsrd_plugin.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/jsoninfo/src/olsrd_plugin.c b/lib/jsoninfo/src/olsrd_plugin.c
index 677784d..f8381e2 100644
--- a/lib/jsoninfo/src/olsrd_plugin.c
+++ b/lib/jsoninfo/src/olsrd_plugin.c
@@ -63,9 +63,9 @@ union olsr_ip_addr jsoninfo_accept_ip;
 union olsr_ip_addr jsoninfo_listen_ip;
 int ipc_port;
 int nompr;
-char uuidfile[FILENAME_MAX];
 bool http_headers;
 int jsoninfo_ipv6_only;
+char uuidfile[FILENAME_MAX];
 
 static void my_init(void) __attribute__ ((constructor));
 static void my_fini(void) __attribute__ ((destructor));
@@ -92,6 +92,8 @@ static void my_init(void) {
 
   /* highlite neighbours by default */
   nompr = 0;
+
+  memset(uuidfile, 0, sizeof(uuidfile));
 }
 
 /**
-- 
2.5.0




More information about the Olsr-dev mailing list