luci-lib-ip: explicitly initialize address scope value
authorJo-Philipp Wich <jo@mein.io>
Thu, 23 Jan 2020 11:31:36 +0000 (12:31 +0100)
committerJo-Philipp Wich <jo@mein.io>
Thu, 23 Jan 2020 11:33:49 +0000 (12:33 +0100)
commit5cbbfaba3e2935b61b42fe339e78b3ff300c1619
tree0bd5317cfa9d0be53c0fd3d1ba2bd3ea9aaed0ee
parent894752610d80a2fa1cdb6a845526728eeb0bc984
luci-lib-ip: explicitly initialize address scope value

Explicitly initialize the address scope value to zero in parse_cidr() and
L_setaddr() to avoid stray scope identifiers getting added when formatting
the address object as string.

Fixes: 1d2b4c777 ("luci-lib-ip: support scoped IPv6 addresses")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
libs/luci-lib-ip/src/ip.c