diff options
author | Ricardo Mestre <mestre@cvs.openbsd.org> | 2021-02-11 11:57:33 +0000 |
---|---|---|
committer | Ricardo Mestre <mestre@cvs.openbsd.org> | 2021-02-11 11:57:33 +0000 |
commit | 6f6dc611d58d14115e5d81974850c24899a94980 (patch) | |
tree | 41481169385e40bcc4ca4f2abddea83cec678add /sys/dev | |
parent | ae8eba58f354ceeb62d6fc80c726d4532e578fa9 (diff) |
Initialize var since it's used in a condition a little bit afterwards.
CID 1501713
ok jmatthew@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pv/vmt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pv/vmt.c b/sys/dev/pv/vmt.c index 2d34c284e6f..18a17b1047c 100644 --- a/sys/dev/pv/vmt.c +++ b/sys/dev/pv/vmt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vmt.c,v 1.22 2021/01/15 06:14:41 jmatthew Exp $ */ +/* $OpenBSD: vmt.c,v 1.23 2021/02/11 11:57:32 mestre Exp $ */ /* * Copyright (c) 2007 David Crawshaw <david@zentus.com> @@ -1289,7 +1289,7 @@ vmt_xdr_nic_info(char *data) struct ifnet *iface; struct vm_nicinfo_nic_list nl; size_t total, nictotal; - char *listdata; + char *listdata = NULL; int nics; NET_ASSERT_LOCKED(); |