Date: Thu, 5 Mar 2015 20:29:18 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r279675 - head/usr.sbin/bhyve Message-ID: <201503052029.t25KTIsU056520@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mav Date: Thu Mar 5 20:29:18 2015 New Revision: 279675 URL: https://svnweb.freebsd.org/changeset/base/279675 Log: Add variable initialization missed by me and clang. Reported by: grehan MFC after: 2 weeks Modified: head/usr.sbin/bhyve/pci_virtio_block.c Modified: head/usr.sbin/bhyve/pci_virtio_block.c ============================================================================== --- head/usr.sbin/bhyve/pci_virtio_block.c Thu Mar 5 20:25:09 2015 (r279674) +++ head/usr.sbin/bhyve/pci_virtio_block.c Thu Mar 5 20:29:18 2015 (r279675) @@ -217,6 +217,7 @@ pci_vtblk_proc(struct pci_vtblk_softc *s 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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503052029.t25KTIsU056520>