Commit 30302d71 authored by Thomas Haller's avatar Thomas Haller
Browse files

auth: downgrade g_assert() to nm_assert()

We know that this isn't going to fail. No need to check every time.
parent 9498ea50
...@@ -264,7 +264,7 @@ nm_auth_manager_polkit_authority_check_authorization (NMAuthManager *self, ...@@ -264,7 +264,7 @@ nm_auth_manager_polkit_authority_check_authorization (NMAuthManager *self,
: POLKIT_CHECK_AUTHORIZATION_FLAGS_NONE; : POLKIT_CHECK_AUTHORIZATION_FLAGS_NONE;
subject_value = nm_auth_subject_unix_process_to_polkit_gvariant (subject); subject_value = nm_auth_subject_unix_process_to_polkit_gvariant (subject);
g_assert (g_variant_is_floating (subject_value)); nm_assert (g_variant_is_floating (subject_value));
/* ((PolkitDetails *)NULL) */ /* ((PolkitDetails *)NULL) */
g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{ss}")); g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{ss}"));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment