summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2015-06-25 17:52:25 +0200
committerThomas Haller <thaller@redhat.com>2015-06-25 18:17:19 +0200
commitc157e3233d638dcd355ba1006031de6b98f3b679 (patch)
treef3f019ebd6a0681c0a84f2c2f4739b9e3eb57fa6
parent79630c11e502c3b0b958abc0b1b5d777a3db2a98 (diff)
downloadNetworkManager-c157e3233d638dcd355ba1006031de6b98f3b679.tar.gz
libnm-glib: avoid coverity warning
5. NetworkManager-1.0.3/libnm-glib/nm-remote-settings.c:493: var_compare_op: Comparing "error" to null implies that "error" might be null. 8. NetworkManager-1.0.3/libnm-glib/nm-remote-settings.c:508: var_deref_op: Dereferencing null pointer "error". # 506| g_hash_table_remove (priv->pending, path); # 507| # 508|-> if (print_once && error->code == DBUS_GERROR_LIMITS_EXCEEDED) { # 509| g_printerr ("Warning: libnm-glib:%s(): a D-Bus limit exceeded: %s. The application might not work properly.\n" # 510| "Consider increasing max_replies_per_connection limit in /etc/dbus-1/system.d/org.freedesktop.NetworkManager.conf "
-rw-r--r--libnm-glib/nm-remote-settings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnm-glib/nm-remote-settings.c b/libnm-glib/nm-remote-settings.c
index ba0aa47be6..80a274f5e3 100644
--- a/libnm-glib/nm-remote-settings.c
+++ b/libnm-glib/nm-remote-settings.c
@@ -493,7 +493,7 @@ connection_inited (GObject *source, GAsyncResult *result, gpointer user_data)
local = g_error_new (NM_REMOTE_SETTINGS_ERROR,
NM_REMOTE_SETTINGS_ERROR_CONNECTION_UNAVAILABLE,
"Connection not visible or not available: %s",
- error ? error->message : "(unknown)");
+ error->message);
add_connection_info_complete (self, addinfo, local);
g_error_free (local);
}