Do not initialise statics to 0 or NULL
Signed-off-by: Zhang Han <zhanghan64@huawei.com>
---
net/tap-solaris.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/tap-solaris.c b/net/tap-solaris.c
index d5af4efd60..0b4f709abc 100644
--- a/net/tap-solaris.c
+++ b/net/tap-solaris.c
@@ -63,10 +63,10 @@ static int tap_alloc(char *dev, size_t dev_size, Error **errp)
/* FIXME leaks like a sieve on error paths */
/* FIXME suspicious: many errors are reported, then ignored */
int tap_fd, if_fd, ppa = -1;
- static int ip_fd = 0;
+ static int ip_fd;
char *ptr;
- static int arp_fd = 0;
+ static int arp_fd;
int ip_muxid, arp_muxid;
struct strioctl strioc_if, strioc_ppa;
int link_type = I_PLINK;
--
2.29.1.59.gf9b6481aed