
18 Apr
2019
18 Apr
'19
8:27 a.m.
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