OSDN Git Service

migration/rdma: Fix uninitialised rdma_return_path
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 30 Aug 2018 17:36:57 +0000 (18:36 +0100)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 26 Sep 2018 11:21:33 +0000 (12:21 +0100)
commit449f91b2c8d2ddf53629d908593f9acf52301b2d
treeb34bdede339e979278f1df89c2fbfe72051be04c
parentc5e4e49258e9b89cb34c085a419dd9f862935c48
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: 55cc1b5937a8e709e4c102e74b206281073aab82
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>
migration/rdma.c