[libvirt] [PATCH 4/5] conf: ensure both resolution values are non-zero

Ján Tomko jtomko at redhat.com
Wed Oct 23 10:24:34 UTC 2019


On Fri, Oct 18, 2019 at 04:40:22PM -0500, Jonathon Jongsma wrote:
>Since the users of the resolution expect the x and y values to be
>non-zero, enforce it in the parser and report an error if either is
>zero.
>
>Signed-off-by: Jonathon Jongsma <jjongsma at redhat.com>
>---
> src/conf/domain_conf.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>

This only works when somebody explicitly specifies x='0', but does not
catch the case where x is omitted from the XML completely

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/20191023/9b703899/attachment-0001.sig>


More information about the libvir-list mailing list