about summary refs log tree commit diff
path: root/cli/src/devices.c
diff options
context:
space:
mode:
Diffstat (limited to 'cli/src/devices.c')
-rw-r--r--cli/src/devices.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/src/devices.c b/cli/src/devices.c
index 0cea0188..ffad9801 100644
--- a/cli/src/devices.c
+++ b/cli/src/devices.c
@@ -909,7 +909,7 @@ show_device_info (gpointer data, gpointer user_data)
 			/* available-connections */
 			avail_cons = nm_device_get_available_connections (device);
 			ac_paths_str = g_string_new (NULL);
-			if (avail_cons->len) {
+			if (avail_cons && avail_cons->len) {
 				ac_arr = g_new (char *, avail_cons->len + 1);
 				ac_arr[avail_cons->len] = NULL;
 			}