mirror of https://gitee.com/openkylin/libvirt.git
conf: fix build by using ret variable when returning from functions
Introduced-by: c3a208af0d
Reported-by: Radoslaw Biernacki <radoslaw.biernacki@linaro.org>
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
240ee7c1d8
commit
20118c0e79
|
@ -24512,7 +24512,7 @@ virDomainControllerDefFormat(virBufferPtr buf,
|
|||
cleanup:
|
||||
virBufferFreeAndReset(&childBuf);
|
||||
|
||||
return 0;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
|
@ -25912,7 +25912,7 @@ virDomainSoundDefFormat(virBufferPtr buf,
|
|||
cleanup:
|
||||
virBufferFreeAndReset(&childBuf);
|
||||
|
||||
return 0;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
|
@ -25976,7 +25976,7 @@ virDomainMemballoonDefFormat(virBufferPtr buf,
|
|||
cleanup:
|
||||
virBufferFreeAndReset(&childrenBuf);
|
||||
|
||||
return 0;
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
Loading…
Reference in New Issue