diff options
author | 2016-02-05 10:30:37 +0000 | |
---|---|---|
committer | 2016-02-05 10:30:37 +0000 | |
commit | 10fc2b8e3c1dd365cf3fa06ae64fb045959f53f3 (patch) | |
tree | 42ee1c2af1d9f4573410b586e56f034810c85afc /sys/dev/pv/xen.c | |
parent | Do not wrap cursor at start or end of history, from Michal Mazurek. (diff) | |
download | wireguard-openbsd-10fc2b8e3c1dd365cf3fa06ae64fb045959f53f3.tar.xz wireguard-openbsd-10fc2b8e3c1dd365cf3fa06ae64fb045959f53f3.zip |
Silence warnings from static analyzers; found by jsg@
Diffstat (limited to 'sys/dev/pv/xen.c')
-rw-r--r-- | sys/dev/pv/xen.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pv/xen.c b/sys/dev/pv/xen.c index 5770d897ceb..be581204cc7 100644 --- a/sys/dev/pv/xen.c +++ b/sys/dev/pv/xen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xen.c,v 1.49 2016/02/02 17:52:46 mikeb Exp $ */ +/* $OpenBSD: xen.c,v 1.50 2016/02/05 10:30:37 mikeb Exp $ */ /* * Copyright (c) 2015 Mike Belopuhov @@ -1243,8 +1243,8 @@ xen_probe_devices(struct xen_softc *sc) { struct xen_attach_args xa; struct xs_transaction xst; - struct iovec *iovp1, *iovp2; - int i, j, error = 0, iov1_cnt, iov2_cnt; + struct iovec *iovp1 = NULL, *iovp2 = NULL; + int i, j, error = 0, iov1_cnt = 0, iov2_cnt = 0; char path[256]; memset(&xst, 0, sizeof(xst)); |