]> git.proxmox.com Git - qemu.git/commit
migration: avoid using error_is_set and thus relying on errp != NULL
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 3 Oct 2012 12:34:33 +0000 (14:34 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 23 Oct 2012 11:54:55 +0000 (13:54 +0200)
commitbe7059cd7f8998d41f0b44ec13907359d04c63d2
treef5bb02993846ff5c8ac5338f2dfaa6f09dd4afff
parent1fc05adfa0f79a1268f7c2b7fb324f15eb63dceb
migration: avoid using error_is_set and thus relying on errp != NULL

The migration code is using errp to detect "internal" errors, this means
that it relies on errp being non-NULL.

No impact so far because our only QMP clients (the QMP marshaller and HMP)
never pass a NULL Error **.  But if we had others, this patch would make
sure that migration can work with a NULL Error **.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
migration-tcp.c
migration.c