fix build failure in nbd_read_reply_entry()
travis builds fail at HEAD at rc3 master with block/nbd-client.c: In function ‘nbd_read_reply_entry’: block/nbd-client.c:110:8: error: ‘ret’ may be used uninitialized in this function [-Werror=uninitialized] fix it by initializing 'ret' to 0 Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
56d7305db6
commit
d0a180131c
@ -70,7 +70,7 @@ static coroutine_fn void nbd_read_reply_entry(void *opaque)
|
||||
{
|
||||
NBDClientSession *s = opaque;
|
||||
uint64_t i;
|
||||
int ret;
|
||||
int ret = 0;
|
||||
Error *local_err = NULL;
|
||||
|
||||
while (!s->quit) {
|
||||
|
Loading…
Reference in New Issue
Block a user