diff options
Diffstat (limited to 'sysdep/unix/log.c')
-rw-r--r-- | sysdep/unix/log.c | 3 |
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); } |