mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 22:20:08 +01:00
settings: assert that we don't leak error variable in impl_settings_load_connections()
This commit is contained in:
parent
eb642fecdf
commit
e0569ee575
1 changed files with 3 additions and 2 deletions
|
|
@ -2750,9 +2750,10 @@ impl_settings_load_connections (NMDBusObject *obj,
|
|||
for (i = 0; i < n_entries; i++) {
|
||||
NMSettingsPluginConnectionLoadEntry *entry = &entries[i];
|
||||
|
||||
if (!entry->handled)
|
||||
if (!entry->handled) {
|
||||
_LOGW ("load: no settings plugin could load \"%s\"", entry->filename);
|
||||
else if (entry->error) {
|
||||
nm_assert (!entry->error);
|
||||
} else if (entry->error) {
|
||||
_LOGW ("load: failure to load \"%s\": %s", entry->filename, entry->error->message);
|
||||
g_clear_error (&entry->error);
|
||||
} else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue