From d661be413fb7d6fccfda541cc6513dee4d2b0894 Mon Sep 17 00:00:00 2001 From: thorkill Date: Tue, 30 Jun 2015 18:10:20 +0200 Subject: [PATCH] Revert "Proper variable initialization" This reverts commit bf91a8a3404e070dec0151468ba8ee3d68f805df. --- src/conf.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/conf.c b/src/conf.c index 0c6c695f..2b323597 100644 --- a/src/conf.c +++ b/src/conf.c @@ -188,9 +188,7 @@ 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; - - memset(&subnet, 0x0, sizeof(subnet_t)); + subnet_t subnet = {NULL}; if(!cfg) return false;