aboutsummaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-06-08 19:35:05 +0000
committerOmar Polo <op@omarpolo.com>2023-06-08 19:35:05 +0000
commit9b2587bb33052c4564987990d281c9f8c25c7024 (patch)
tree7366eb1bf9dd45600c0094cb2a3827cffc29ddcf /config.c
parent1c6967b33a31b4c24881a72dc0ab95286ece8f62 (diff)
safety measure, explicitly memset config in config_init
Diffstat (limited to 'config.c')
-rw-r--r--config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/config.c b/config.c
index 93cdf99..b37fed0 100644
--- a/config.c
+++ b/config.c
@@ -28,6 +28,8 @@
void
config_init(void)
{
+ memset(&conf, 0, sizeof(conf));
+
TAILQ_INIT(&hosts);
conf.port = 1965;