Re: [PATCH v2 04/11] conf: net: Add model enum, and netfront value

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

 



On 4/17/19 5:58 PM, Cole Robinson wrote:
> <snip/>
virDomainNetModeTypeFromString is just virEnumFromString which doesn't
deference NULL

int

virEnumFromString(const char * const *types,

                   unsigned int ntypes,

                   const char *type)

{

     size_t i;

     if (!type)

         return -1;


Ah, I somehow missed that. Yep, your code was right from the beginning. Sorry for the noise.

Michal

--
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