[libvirt PATCH] vz: Fix return value in error path

Ján Tomko jtomko at redhat.com
Mon Feb 24 09:47:33 UTC 2020


On Sun, Feb 23, 2020 at 12:22:47AM +0100, Rikard Falkeborn wrote:
>If PrlVmDev_GetType(), PrlVmDev_GetIndex() or PrlVmCfg_GetBootDevCount()
>fails, return false to indicate error. Returning -1 would be interpreted
>as true when used in an if-statement.
>
>Fixes: 8c9252aa6d95247537da0939b54fdd2f31695e32
>Signed-off-by: Rikard Falkeborn <rikard.falkeborn at gmail.com>
>---
> src/vz/vz_sdk.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>
and pushed

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20200224/d2b403d4/attachment-0001.sig>


More information about the libvir-list mailing list