summaryrefslogtreecommitdiffstats
path: root/zebra/ioctl.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2015-04-21 10:13:07 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-06-08 21:01:33 +0200
commit9b6710b406ff7ba6e6b6d356a678edb746066424 (patch)
tree793c629ac476173dd110b26b47a23ce388b90f00 /zebra/ioctl.c
parentlib: fix "reduce strcmp in CLI" fallout (10bac801) (diff)
downloadfrr-9b6710b406ff7ba6e6b6d356a678edb746066424.tar.xz
frr-9b6710b406ff7ba6e6b6d356a678edb746066424.zip
*: fix more initialisers (for BSD)
FreeBSD and NetBSD spew a few more warnings about variable initialisers. Found with OSR's/NetDEF's fancy new CI system. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'zebra/ioctl.c')
-rw-r--r--zebra/ioctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/ioctl.c b/zebra/ioctl.c
index 24df98557..f91ee2438 100644
--- a/zebra/ioctl.c
+++ b/zebra/ioctl.c
@@ -52,7 +52,7 @@ if_ioctl (u_long request, caddr_t buffer)
{
int sock;
int ret;
- int err;
+ int err = 0;
if (zserv_privs.change(ZPRIVS_RAISE))
zlog (NULL, LOG_ERR, "Can't raise privileges");
@@ -85,7 +85,7 @@ if_ioctl_ipv6 (u_long request, caddr_t buffer)
{
int sock;
int ret;
- int err;
+ int err = 0;
if (zserv_privs.change(ZPRIVS_RAISE))
zlog (NULL, LOG_ERR, "Can't raise privileges");