diff options
author | mav <mav@FreeBSD.org> | 2015-03-05 20:29:18 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2015-03-05 20:29:18 +0000 |
commit | a0ef792dfe8e65fc36f4df479d1d4044ea825b67 (patch) | |
tree | d7e83ec6b2068d80571f8f9aed934c4ac2ecb866 | |
parent | 710980f2ffb94a277e8be0ed18f227a3496c0263 (diff) | |
download | FreeBSD-src-a0ef792dfe8e65fc36f4df479d1d4044ea825b67.zip FreeBSD-src-a0ef792dfe8e65fc36f4df479d1d4044ea825b67.tar.gz |
Add variable initialization missed by me and clang.
Reported by: grehan
MFC after: 2 weeks
-rw-r--r-- | usr.sbin/bhyve/pci_virtio_block.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/bhyve/pci_virtio_block.c b/usr.sbin/bhyve/pci_virtio_block.c index 0fcb649..fef7fec 100644 --- a/usr.sbin/bhyve/pci_virtio_block.c +++ b/usr.sbin/bhyve/pci_virtio_block.c @@ -217,6 +217,7 @@ pci_vtblk_proc(struct pci_vtblk_softc *sc, struct vqueue_info *vq) DPRINTF(("virtio-block: %s op, %d bytes, %d segs, offset %ld\n\r", writeop ? "write" : "read/ident", iolen, i - 1, offset)); + err = 0; switch (type) { case VBH_OP_WRITE: if (pwritev(sc->vbsc_fd, iov + 1, i - 1, offset) < 0) |