summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2020-08-24 21:30:14 +0200
committerMikael Magnusson <mikma@users.sourceforge.net>2020-09-13 18:06:16 +0200
commit19d440d96151084dd933cf72c4410978fbb8334b (patch)
treed068fe7f814e6c41a3971ee57efb31d4d60cdf7d
parent29581dfa003b34878334911beea5692688d7b0b5 (diff)
Android: Initialize static variables
-rw-r--r--sysdep/unix/log.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdep/unix/log.c b/sysdep/unix/log.c
index e24322c6..68350141 100644
--- a/sysdep/unix/log.c
+++ b/sysdep/unix/log.c
@@ -342,6 +342,7 @@ default_log_list(int initial, const char **syslog_name)
if (!dbgf)
{
static struct log_config lc_syslog = { .mask = ~0 };
+ memset(&lc_syslog.n, 0, sizeof(lc_syslog.n));
add_tail(&log_list, &lc_syslog.n);
*syslog_name = bird_name;
}
@@ -351,6 +352,7 @@ default_log_list(int initial, const char **syslog_name)
{
static struct log_config lc_debug = { .mask = ~0 };
lc_debug.fh = dbgf;
+ memset(&lc_debug.n, 0, sizeof(lc_debug.n));
add_tail(&log_list, &lc_debug.n);
}
@@ -358,6 +360,7 @@ default_log_list(int initial, const char **syslog_name)
{
static struct log_config lc_stderr = { .mask = ~0, .terminal_flag = 1};
lc_stderr.fh = stderr;
+ memset(&lc_stderr.n, 0, sizeof(lc_stderr.n));
add_tail(&log_list, &lc_stderr.n);
}