From a4256940da049f91bbbea5e53e469a59ea9c10f7 Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Fri, 25 Oct 2013 21:20:58 +0200 Subject: Imported Upstream version 0.9.8.8 --- cli/src/devices.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/src/devices.c') 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; } -- cgit 1.3.0-6-gf8a5