diff --git a/src/linux/device.c b/src/linux/device.c index a06e6daf..4befdb30 100644 --- a/src/linux/device.c +++ b/src/linux/device.c @@ -65,8 +65,8 @@ static bool setup_device(void) { fcntl(device_fd, F_SETFD, FD_CLOEXEC); #endif - struct ifreq ifr = {{{0}}}; - + struct ifreq ifr; + memset(&ifr, 0x0, sizeof(struct ifreq)); get_config_string(lookup_config(config_tree, "DeviceType"), &type); if(type && strcasecmp(type, "tun") && strcasecmp(type, "tap")) {