aboutsummaryrefslogtreecommitdiffstats
path: root/ctrl/libhicnctrl/src/face.c
diff options
context:
space:
mode:
Diffstat (limited to 'ctrl/libhicnctrl/src/face.c')
-rw-r--r--ctrl/libhicnctrl/src/face.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ctrl/libhicnctrl/src/face.c b/ctrl/libhicnctrl/src/face.c
index 41ff58f81..0e25890da 100644
--- a/ctrl/libhicnctrl/src/face.c
+++ b/ctrl/libhicnctrl/src/face.c
@@ -129,6 +129,7 @@ netdevice_get_name(const netdevice_t * netdevice, const char ** name)
int
netdevice_set_name(netdevice_t * netdevice, const char * name)
{
+ memset(netdevice->name, 0, sizeof(netdevice->name));
int rc = snprintf(netdevice->name, IFNAMSIZ, "%s", name);
if (rc < 0)
return -1;