Fix warning on OpenBSD
/src/qemu/net.c: In function `net_check_clients': /src/qemu/net.c:1287: warning: `has_nic' might be used uninitialized in this function /src/qemu/net.c:1287: warning: `has_host_dev' might be used uninitialized in this function Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
		
							parent
							
								
									6ec8523603
								
							
						
					
					
						commit
						64e69d50a3
					
				
							
								
								
									
										2
									
								
								net.c
								
								
								
								
							
							
						
						
									
										2
									
								
								net.c
								
								
								
								
							| 
						 | 
					@ -1284,7 +1284,7 @@ void net_check_clients(void)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    VLANState *vlan;
 | 
					    VLANState *vlan;
 | 
				
			||||||
    VLANClientState *vc;
 | 
					    VLANClientState *vc;
 | 
				
			||||||
    int has_nic, has_host_dev;
 | 
					    int has_nic = 0, has_host_dev = 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    QTAILQ_FOREACH(vlan, &vlans, next) {
 | 
					    QTAILQ_FOREACH(vlan, &vlans, next) {
 | 
				
			||||||
        QTAILQ_FOREACH(vc, &vlan->clients, next) {
 | 
					        QTAILQ_FOREACH(vc, &vlan->clients, next) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue