From bf91a8a3404e070dec0151468ba8ee3d68f805df Mon Sep 17 00:00:00 2001 From: thorkill Date: Mon, 29 Jun 2015 00:41:21 +0200 Subject: [PATCH] Proper variable initialization --- src/conf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/conf.c b/src/conf.c index 2b323597..0c6c695f 100644 --- a/src/conf.c +++ b/src/conf.c @@ -188,7 +188,9 @@ bool get_config_address(const config_t *cfg, struct addrinfo **result) { } bool get_config_subnet(const config_t *cfg, subnet_t ** result) { - subnet_t subnet = {NULL}; + subnet_t subnet; + + memset(&subnet, 0x0, sizeof(subnet_t)); if(!cfg) return false;