Re: [PATCH 5/5] conf: report errors when parsing video accel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 18, 2019 at 04:40:23PM -0500, Jonathon Jongsma wrote:
If any of the values are invalid, report an error and return NULL rather
than returning a partially-specified accel object. Convert to g_autofree

This is marginally better, but the reported errors will only get logged,
not reported - since the parent function does not treat a NULL accel as
a failure.

To properly propagate the errors to the user, the function needs to
distinguish between failure and no accel specified.

(Same for virDomainVideoResolutionDefParseXML which I guess was modelled
after this one)

Jano

as well to simplify logic and remove the goto.

Signed-off-by: Jonathon Jongsma <jjongsma@xxxxxxxxxx>
---
src/conf/domain_conf.c | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)

Attachment: signature.asc
Description: PGP signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux