diff options
Diffstat (limited to 'lib/zclient.c')
-rw-r--r-- | lib/zclient.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/zclient.c b/lib/zclient.c index bb7747fa..f6be5138 100644 --- a/lib/zclient.c +++ b/lib/zclient.c @@ -555,10 +555,7 @@ zebra_interface_add_read (struct stream *s) /* If such interface does not exist, make new one. */ if (! ifp) - { - ifp = if_create (); - strncpy (ifp->name, ifname_tmp, IFNAMSIZ); - } + ifp = if_create (ifname_tmp, IFNAMSIZ); /* Read interface's index. */ ifp->ifindex = stream_getl (s); |