diff options
author | Omar Polo <op@omarpolo.com> | 2023-06-08 19:35:05 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2023-06-08 19:35:05 +0000 |
commit | 9b2587bb33052c4564987990d281c9f8c25c7024 (patch) | |
tree | 7366eb1bf9dd45600c0094cb2a3827cffc29ddcf /config.c | |
parent | 1c6967b33a31b4c24881a72dc0ab95286ece8f62 (diff) |
safety measure, explicitly memset config in config_init
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -28,6 +28,8 @@ void config_init(void) { + memset(&conf, 0, sizeof(conf)); + TAILQ_INIT(&hosts); conf.port = 1965; |