mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-07 09:38:06 +02:00
settings: assert that we don't leak error variable in impl_settings_load_connections()
(cherry picked from commite0569ee575) (cherry picked from commit7e8a5d98e3)
This commit is contained in:
parent
aa545d5b58
commit
ee032f79df
1 changed files with 3 additions and 2 deletions
|
|
@ -2776,9 +2776,10 @@ impl_settings_load_connections (NMDBusObject *obj,
|
||||||
for (i = 0; i < n_entries; i++) {
|
for (i = 0; i < n_entries; i++) {
|
||||||
NMSettingsPluginConnectionLoadEntry *entry = &entries[i];
|
NMSettingsPluginConnectionLoadEntry *entry = &entries[i];
|
||||||
|
|
||||||
if (!entry->handled)
|
if (!entry->handled) {
|
||||||
_LOGW ("load: no settings plugin could load \"%s\"", entry->filename);
|
_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);
|
_LOGW ("load: failure to load \"%s\": %s", entry->filename, entry->error->message);
|
||||||
g_clear_error (&entry->error);
|
g_clear_error (&entry->error);
|
||||||
} else
|
} else
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue