diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-02-20 08:20:18 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-02-20 08:20:18 +0000 |
commit | 64e69d50a394a48de7607f178d53c192443f9066 (patch) | |
tree | c0679ef22dc17915416724b2152149fceb135201 /net.c | |
parent | 6ec852360336a6c8accccd5a9bc472bafc694e11 (diff) |
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>
Diffstat (limited to 'net.c')
-rw-r--r-- | net.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1284,7 +1284,7 @@ void net_check_clients(void) { VLANState *vlan; VLANClientState *vc; - int has_nic, has_host_dev; + int has_nic = 0, has_host_dev = 0; QTAILQ_FOREACH(vlan, &vlans, next) { QTAILQ_FOREACH(vc, &vlan->clients, next) { |