diff options
author | Stefan Weil <sw@weilnetz.de> | 2013-09-22 08:19:10 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2013-09-25 16:21:28 +0200 |
commit | c3e4f43a99549daa6e9b87350922e8339341c2ab (patch) | |
tree | d13985f21f5cdd6c1c783e953f4beb08e53415a6 /backends | |
parent | 030be32184034261da14693b69e9582f6fe4af9d (diff) | |
download | hqemu-c3e4f43a99549daa6e9b87350922e8339341c2ab.zip hqemu-c3e4f43a99549daa6e9b87350922e8339341c2ab.tar.gz |
block: Fix compiler warning (-Werror=uninitialized)
The patch fixes a warning from gcc (Debian 4.6.3-14+rpi1) 4.6.3:
block/stream.c:141:22: error:
‘copy’ may be used uninitialized in this function [-Werror=uninitialized]
This is not a real bug - a better compiler would not complain.
Now 'copy' has always a defined value, so the check for ret >= 0
can be removed.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'backends')
0 files changed, 0 insertions, 0 deletions