[libvirt] [PATCH] conf: Don't assign value from ..TypeFromString directly to enum

Pavel Hrdina phrdina at redhat.com
Fri May 19 08:42:54 UTC 2017


On Fri, May 19, 2017 at 10:27:57AM +0200, Peter Krempa wrote:
> Enums are unsigned, so it's impossible to check whether the helper
> returned -1 for invalid conversions.
> 
> Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1452454
> ---
>  src/conf/domain_conf.c | 15 +++++++++------
>  1 file changed, 9 insertions(+), 6 deletions(-)

Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170519/80faf5d7/attachment-0001.sig>


More information about the libvir-list mailing list