summaryrefslogtreecommitdiff
path: root/test/nm-tool.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/nm-tool.c')
-rw-r--r--test/nm-tool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/nm-tool.c b/test/nm-tool.c
index 511e908517..5d2ecbd513 100644
--- a/test/nm-tool.c
+++ b/test/nm-tool.c
@@ -205,7 +205,7 @@ detail_device (gpointer data, gpointer user_data)
tmp = NULL;
if (NM_IS_DEVICE_802_3_ETHERNET (device))
- tmp = nm_device_802_3_ethernet_get_hw_address (NM_DEVICE_802_3_ETHERNET (device));
+ tmp = g_strdup (nm_device_802_3_ethernet_get_hw_address (NM_DEVICE_802_3_ETHERNET (device)));
else if (NM_IS_DEVICE_802_11_WIRELESS (device))
tmp = g_strdup (nm_device_802_11_wireless_get_hw_address (NM_DEVICE_802_11_WIRELESS (device)));