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