On Wed, 2019-10-23 at 12:24 +0200, Ján Tomko wrote:
> 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@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
>
That's true with respect to the changes within this diff, but earlier
in the function we already ensure that 'x' and 'y' are non-null. So if
the attributes were omitted, we would have already failed before this
point.
Jonathon
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list