mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 00:00:08 +01:00
settings: make sure we use a clear error every time
This commit is contained in:
parent
947efa3080
commit
453ea4d5c7
1 changed files with 1 additions and 1 deletions
|
|
@ -792,7 +792,6 @@ add_new_connection (NMSettings *self,
|
|||
GError **error)
|
||||
{
|
||||
NMSettingsPrivate *priv = NM_SETTINGS_GET_PRIVATE (self);
|
||||
GError *add_error = NULL;
|
||||
GSList *iter;
|
||||
NMSysconfigConnection *added = NULL;
|
||||
|
||||
|
|
@ -806,6 +805,7 @@ add_new_connection (NMSettings *self,
|
|||
*/
|
||||
for (iter = priv->plugins; iter; iter = g_slist_next (iter)) {
|
||||
NMSystemConfigInterface *plugin = NM_SYSTEM_CONFIG_INTERFACE (iter->data);
|
||||
GError *add_error = NULL;
|
||||
|
||||
g_clear_error (error);
|
||||
added = nm_system_config_interface_add_connection (plugin, connection, &add_error);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue