Initialize variables in linux/device.c

This commit is contained in:
thorkill 2015-06-30 19:42:37 +02:00
parent fb2942a249
commit de9f04c30e

View file

@ -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")) {