From: Michal Privoznik <[email protected]> Ever since of v1.2.14-rc1~105 the hwaddr member of _virDomainInterface struct can be NULL. And this is documented inside the struct. But then the public API documents it can never be NULL which is obviously wrong. Fix the public API documentation.
Fixes: 3640245db7d72bf8e05df726587625a6328c895e Signed-off-by: Michal Privoznik <[email protected]> --- src/libvirt-domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libvirt-domain.c b/src/libvirt-domain.c index 74c70a0a43..a278c4679d 100644 --- a/src/libvirt-domain.c +++ b/src/libvirt-domain.c @@ -12881,7 +12881,7 @@ virDomainFSInfoFree(virDomainFSInfoPtr info) * might be unset (e.g. VIR_DOMAIN_INTERFACE_ADDRESSES_SRC_ARP does not * set IP address prefix as ARP table does not have any notion of that). * - * @ifaces->name and @ifaces->hwaddr are never NULL. + * @ifaces->name is never NULL, and @ifaces->hwaddr may be NULL. * * The caller *must* free @ifaces when no longer needed. Usual use case * looks like this: -- 2.52.0
