Proper variable initialization
This commit is contained in:
parent
157ee90568
commit
bf91a8a340
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
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)
|
if(!cfg)
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue