From 2f79a14d14d67e9f0feaba710d613d6f803671f4 Mon Sep 17 00:00:00 2001 From: mestre Date: Thu, 11 Feb 2021 11:57:32 +0000 Subject: [PATCH] Initialize var since it's used in a condition a little bit afterwards. CID 1501713 ok jmatthew@ --- sys/dev/pv/vmt.c | 4 ++-- 1 file 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 @@ -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(); -- 2.20.1