mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-26 17:00:32 +01:00
keyfile: avoid assertion failure in nm_keyfile_plugin_kf_get_{string,integer}_list()
g_key_file_get_integer_list() can return %NULL without setting an error. That is the case if the key is set to an empty value. For X sake, this API. Read the documentation and figure out whether the function can return %NULL without reporting an error. Anyway, avoid the assertion failure. https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/412 (cherry picked from commit8f46425b11) (cherry picked from commit97139f5e3d) (cherry picked from commit59d488cb46) (cherry picked from commitb82a8e4e01)
This commit is contained in:
parent
1c187b7f54
commit
815f48152f
1 changed files with 0 additions and 1 deletions
|
|
@ -92,7 +92,6 @@ nm_keyfile_plugin_kf_get_##stype##_list (GKeyFile *kf, \
|
|||
list = g_key_file_get_##stype##_list (kf, alias, key, &l, &local); \
|
||||
} \
|
||||
} \
|
||||
nm_assert ((!local) != (!list)); \
|
||||
if (local) \
|
||||
g_propagate_error (error, local); \
|
||||
if (!list) \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue