mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
qemu: migration: Make check for empty hook XML robust
Also consider whitespace only strings returned from the hook as empty result.
This commit is contained in:
parent
e386779937
commit
19b1ee42b4
@ -2570,7 +2570,7 @@ qemuMigrationPrepareAny(virQEMUDriverPtr driver,
|
||||
if (hookret < 0) {
|
||||
goto cleanup;
|
||||
} else if (hookret == 0) {
|
||||
if (!*xmlout) {
|
||||
if (virStringIsEmpty(xmlout)) {
|
||||
VIR_DEBUG("Migrate hook filter returned nothing; using the"
|
||||
" original XML");
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user