mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-05 03:20:18 +01:00
libnm: don't assert for success of g_dbus_error_register_error()
libnm/tests/test-general statically links against libnm/libnm-utils.la and dynamically against libnm/libnm.so. Hence, _nm_utils_init() is invoked twice, failing the assertion. That is a bug that must be fixed. For now, just don't assert.
This commit is contained in:
parent
8fcadf5328
commit
7a0e347b38
1 changed files with 1 additions and 2 deletions
|
|
@ -49,8 +49,7 @@ register_error_domain (GQuark domain,
|
|||
nm_assert (e && e->value_nick && !strchr (e->value_nick, '-'));
|
||||
|
||||
nm_sprintf_buf (error_name, "%s.%s", interface, e->value_nick);
|
||||
if (!g_dbus_error_register_error (domain, e->value, error_name))
|
||||
nm_assert_not_reached ();
|
||||
g_dbus_error_register_error (domain, e->value, error_name);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue