migration: Don't try to set *errp directly
commit250561e1aebf69e911992da9017322df7aeaa564
authorEduardo Habkost <ehabkost@redhat.com>
Thu, 8 Jun 2017 13:39:05 +0000 (8 10:39 -0300)
committerJuan Quintela <quintela@redhat.com>
Tue, 13 Jun 2017 09:00:44 +0000 (13 11:00 +0200)
treee15752ffd84005f6717619fb8ba3a7cf8a5484c9
parent0425dc976212a38961f0469003074d1df65a61f2
migration: Don't try to set *errp directly

Assigning directly to *errp is not valid, as errp may be NULL,
&error_fatal, or &error_abort.  Use error_propagate() instead.

Cc: Juan Quintela <quintela@redhat.com>
Cc: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/migration.c