提交 19b1ee42 编写于 作者: P Peter Krempa

qemu: migration: Make check for empty hook XML robust

Also consider whitespace only strings returned from the hook as empty
result.
上级 e3867799
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册