Re: [libvirt] [PATCH] Allow NULL mac address in virGetInterface.

2009-10-21 Thread Daniel Veillard
On Mon, Oct 19, 2009 at 04:41:52PM -0400, Laine Stump wrote: There are places where an interface will not have a mac address, and netcf returns this as a NULL pointer rather than a pointer to an empty string. Rather than checking for this all over the place in libvirt, just save it in the

Re: [libvirt] [PATCH] Allow NULL mac address in virGetInterface.

2009-10-21 Thread Laine Stump
On 10/21/2009 06:19 AM, Daniel Veillard wrote: On Mon, Oct 19, 2009 at 04:41:52PM -0400, Laine Stump wrote: There are places where an interface will not have a mac address, and netcf returns this as a NULL pointer rather than a pointer to an empty string. Rather than checking for this all

[libvirt] [PATCH] Allow NULL mac address in virGetInterface.

2009-10-19 Thread Laine Stump
There are places where an interface will not have a mac address, and netcf returns this as a NULL pointer rather than a pointer to an empty string. Rather than checking for this all over the place in libvirt, just save it in the virInterface object as an empty string. --- src/datatypes.c |7