mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-03 15:58:02 +02:00
libnm-util: simplify nm_setting_update_secrets()
Don't touch tmp_error after we've freed it; it's not actually a problem since we're not dereferencing tmp_error, but it's cleaner this way.
This commit is contained in:
parent
e050f44ab6
commit
07b9660263
1 changed files with 2 additions and 2 deletions
|
|
@ -692,11 +692,11 @@ nm_setting_update_secrets (NMSetting *setting, GHashTable *secrets, GError **err
|
|||
NM_SETTING_GET_CLASS (setting)->update_one_secret (setting, secret_key, secret_value, &tmp_error);
|
||||
if (tmp_error) {
|
||||
g_propagate_error (error, tmp_error);
|
||||
break;
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
return tmp_error ? FALSE : TRUE;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue