initialize local variable addr in ippool_new()

Coverity points out that addr.len was potentially being used
uninitialized, via calls to in46a_inc(&addr).

Change-Id: Idb67394e5f4c2072380a33f46c848d92c4317245
Related: CID#174189
This commit is contained in:
Stefan Sperling 2018-11-22 08:12:28 +01:00
parent e405c2f196
commit 7327360d10
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ int ippool_new(struct ippool_t **this, const struct in46_prefix *dyn, const stru
/* Parse only first instance of pool for now */
int i;
struct in46_addr addr;
struct in46_addr addr = { 0 };
size_t addrprefixlen;
struct in46_addr stataddr;
size_t stataddrprefixlen;