Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx> --- src/domain.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/domain.c b/src/domain.c index 17231bd..20d41fe 100644 --- a/src/domain.c +++ b/src/domain.c @@ -938,7 +938,8 @@ virtDBusDomainGetBlockIOTune(GVariant *inArgs, ret = virDomainGetBlockIoTune(domain, disk, NULL, ¶ms.nparams, flags); if (ret < 0) return virtDBusUtilSetLastVirtError(error); - if (ret == 0 && params.nparams != 0) { + + if (params.nparams != 0) { params.params = g_new0(virTypedParameter, params.nparams); if (virDomainGetBlockIoTune(domain, disk, params.params, ¶ms.nparams, flags) < 0) { -- 2.14.3 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list