]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Allow NULL mac address in virGetInterface
authorLaine Stump <laine@laine.org>
Tue, 3 Nov 2009 15:42:53 +0000 (16:42 +0100)
committerDaniel Veillard <veillard@redhat.com>
Tue, 3 Nov 2009 15:42:53 +0000 (16:42 +0100)
commit4728bad403189ac4c4381b7542f304c51000d24b
treef94eeff7b4d54345319bf8de2f751113752c9a26
parent112ed8f50d3c19cf9a077a799fa5477da9639429
Allow NULL mac address in virGetInterface

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: allow NULL mac in virGetInterface()
src/datatypes.c