mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 01:10:08 +01:00
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 "
(cherry picked from commit c157e3233d)
This commit is contained in:
parent
2a5eea7e76
commit
b0a33247c3
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue