Commit 453ea4d5 authored by Dan Williams's avatar Dan Williams

settings: make sure we use a clear error every time

parent 947efa30
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment