]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/milkymist-softusb: set buffer in softusb_read_{dmem, pmem} error path
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 28 Mar 2013 18:43:04 +0000 (18:43 +0000)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 1 Apr 2013 14:08:33 +0000 (09:08 -0500)
commitc31bc98e3bcf52fe1cd4b9b7a70869330eae80ea
tree0f10ab513abcc99d67f91fe9912a857bcd67582a
parentc34e120554c31d45bdfbac08a5c1d9ef92a62020
hw/milkymist-softusb: set buffer in softusb_read_{dmem, pmem} error path

Make sure we set the buffer to something in the softusb_read_{dmem,pmem}
error paths, since the caller will use the buffer unconditionally.
(Newer gcc is smart enough to spot this and complain about 'may be
used uninitialized'.)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1364496184-11994-1-git-send-email-peter.maydell@linaro.org
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/milkymist-softusb.c