diff options
author | Michael Biebl <biebl@debian.org> | 2010-11-29 19:00:22 +0100 |
---|---|---|
committer | Michael Biebl <biebl@debian.org> | 2010-11-29 19:00:22 +0100 |
commit | a6b89d35fabd9f5934b84d7cde22e9268f92c3d3 (patch) | |
tree | 9e44755880d5933fcc90c6008d4585a76298a1bd /test/nm-tool.c | |
parent | 9fae01fa351805b2903e535736e06971bc0b925e (diff) |
Imported Upstream version 0.8.2upstream/0.8.2
Diffstat (limited to 'test/nm-tool.c')
-rw-r--r-- | test/nm-tool.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/nm-tool.c b/test/nm-tool.c index df0c15ed3..b1178eaf0 100644 --- a/test/nm-tool.c +++ b/test/nm-tool.c @@ -16,7 +16,7 @@ * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * - * (C) Copyright 2005 - 2009 Red Hat, Inc. + * (C) Copyright 2005 - 2010 Red Hat, Inc. * (C) Copyright 2007 Novell, Inc. */ @@ -535,7 +535,7 @@ detail_vpn (gpointer data, gpointer user_data) g_return_if_fail (connection != NULL); s_con = (NMSettingConnection *) nm_connection_get_setting (connection, NM_TYPE_SETTING_CONNECTION); - g_return_if_fail (connection != NULL); + g_return_if_fail (s_con != NULL); print_header ("VPN", NULL, nm_setting_connection_get_id (s_con)); @@ -643,8 +643,7 @@ get_connections_for_service (DBusGConnection *bus, G_TYPE_INVALID, DBUS_TYPE_G_ARRAY_OF_OBJECT_PATH, &paths, G_TYPE_INVALID)) { - g_warning ("error: failed to read connections from %s:\n %s", - service, error ? error->message : "(unknown)"); + /* No connections or settings service may not be running */ g_clear_error (&error); goto out; } |