mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-11 11:50:29 +01:00
settings: fix wrong assertions for calling nm_settings_connection_replace_settings()
This commit is contained in:
parent
73703c4d19
commit
c2dc5d3b0f
3 changed files with 8 additions and 4 deletions
|
|
@ -342,8 +342,9 @@ connection_new_or_changed (SCPluginIfcfg *self,
|
|||
FALSE, /* don't set Unsaved */
|
||||
&error)) {
|
||||
/* Shouldn't ever get here as 'new' was verified by the reader already */
|
||||
g_assert_no_error (error);
|
||||
g_assert_not_reached ();
|
||||
}
|
||||
g_assert_no_error (error);
|
||||
}
|
||||
g_object_unref (new);
|
||||
|
||||
|
|
|
|||
|
|
@ -315,8 +315,9 @@ reload_connections (NMSystemConfigInterface *config)
|
|||
FALSE, /* don't set Unsaved */
|
||||
&error)) {
|
||||
/* Shouldn't ever get here as 'new' was verified by the reader already */
|
||||
g_assert_no_error (error);
|
||||
g_assert_not_reached ();
|
||||
}
|
||||
g_assert_no_error (error);
|
||||
nm_log_info (LOGD_SETTINGS, "Connection %s updated",
|
||||
nm_connection_get_id (NM_CONNECTION (new)));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -128,8 +128,9 @@ update_connection (SCPluginKeyfile *self,
|
|||
FALSE, /* don't set Unsaved */
|
||||
&error)) {
|
||||
/* Shouldn't ever get here as 'new' was verified by the reader already */
|
||||
g_assert_no_error (error);
|
||||
g_assert_not_reached ();
|
||||
}
|
||||
g_assert_no_error (error);
|
||||
}
|
||||
g_object_unref (tmp);
|
||||
}
|
||||
|
|
@ -183,8 +184,9 @@ new_connection (SCPluginKeyfile *self,
|
|||
FALSE, /* don't set Unsaved */
|
||||
&error)) {
|
||||
/* Shouldn't ever get here as 'tmp' was verified by the reader already */
|
||||
g_assert_no_error (error);
|
||||
g_assert_not_reached ();
|
||||
}
|
||||
g_assert_no_error (error);
|
||||
g_object_unref (tmp);
|
||||
if (out_old_path)
|
||||
*out_old_path = g_strdup (nm_settings_connection_get_filename (connection));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue