X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fbsd%2Fdevice.c;h=badd77d7a4b07787329e4ba8279e0d4d133b2ddc;hb=c44b08613508c993e7fd9f625e0b1b4775efffed;hp=fe2d6c5201cf39b9ea38218253de53cca9ef638e;hpb=3a149f7521dfff67e6a790c1a830afc649ae083e;p=tinc diff --git a/src/bsd/device.c b/src/bsd/device.c index fe2d6c52..badd77d7 100644 --- a/src/bsd/device.c +++ b/src/bsd/device.c @@ -1,7 +1,7 @@ /* device.c -- Interaction BSD tun/tap device Copyright (C) 2001-2005 Ivo Timmermans, - 2001-2021 Guus Sliepen + 2001-2022 Guus Sliepen 2009 Grzegorz Dymarek This program is free software; you can redistribute it and/or modify @@ -28,7 +28,7 @@ #include "../xalloc.h" #ifdef ENABLE_TUNEMU -#include "bsd/tunemu.h" +#include "tunemu.h" #endif #ifdef HAVE_NET_IF_UTUN_H @@ -76,7 +76,9 @@ static bool setup_utun(void) { return false; } - struct ctl_info info = {}; + struct ctl_info info; + + memset(&info, 0, sizeof(info)); strlcpy(info.ctl_name, UTUN_CONTROL_NAME, sizeof(info.ctl_name));