From 1a33ab17de3ad2d9afe409295b7fd393c013f863 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 11 Apr 2018 17:35:23 +0200 Subject: core: downgrade assertion to nm_assert() It can be easily verified, that these assertions should not ever fail. Disable in production builds. --- src/nm-manager.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/nm-manager.c') diff --git a/src/nm-manager.c b/src/nm-manager.c index f5b9ac723d..a4156fa2a7 100644 --- a/src/nm-manager.c +++ b/src/nm-manager.c @@ -4243,9 +4243,9 @@ validate_activation_request (NMManager *self, NMAuthSubject *subject = NULL; char *error_desc = NULL; - g_assert (connection); - g_assert (out_device); - g_assert (out_vpn); + nm_assert (NM_IS_CONNECTION (connection)); + nm_assert (out_device); + nm_assert (out_vpn); /* Validate the caller */ subject = nm_auth_subject_new_unix_process_from_context (context); -- cgit v1.2.1