Initialize variables in linux/device.c
This commit is contained in:
		
							parent
							
								
									fb2942a249
								
							
						
					
					
						commit
						de9f04c30e
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -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")) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue