migration/rdma: Fix uninitialised rdma_return_path
Clang correctly errors out moaning that rdma_return_path
is used uninitialised in the earlier error paths.
Make it NULL so that the error path ignores it.
Fixes: 55cc1b5937
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reported-by: Cornelia Huck <cohuck@redhat.com>
Message-Id: <20180830173657.22939-1-dgilbert@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
This commit is contained in:
parent
c5e4e49258
commit
449f91b2c8
@ -4012,7 +4012,7 @@ static void rdma_accept_incoming_migration(void *opaque)
|
|||||||
void rdma_start_incoming_migration(const char *host_port, Error **errp)
|
void rdma_start_incoming_migration(const char *host_port, Error **errp)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
RDMAContext *rdma, *rdma_return_path;
|
RDMAContext *rdma, *rdma_return_path = NULL;
|
||||||
Error *local_err = NULL;
|
Error *local_err = NULL;
|
||||||
|
|
||||||
trace_rdma_start_incoming_migration();
|
trace_rdma_start_incoming_migration();
|
||||||
|
Loading…
Reference in New Issue
Block a user