summaryrefslogtreecommitdiff
path: root/libnm/nm-device-bond.c
diff options
context:
space:
mode:
Diffstat (limited to 'libnm/nm-device-bond.c')
-rw-r--r--libnm/nm-device-bond.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnm/nm-device-bond.c b/libnm/nm-device-bond.c
index e5977c6664..0a9fae86a2 100644
--- a/libnm/nm-device-bond.c
+++ b/libnm/nm-device-bond.c
@@ -64,7 +64,7 @@ nm_device_bond_get_hw_address (NMDeviceBond *device)
{
g_return_val_if_fail (NM_IS_DEVICE_BOND (device), NULL);
- return NM_DEVICE_BOND_GET_PRIVATE (device)->hw_address;
+ return nm_str_not_empty (NM_DEVICE_BOND_GET_PRIVATE (device)->hw_address);
}
/**