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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user