summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-04-06 23:40:16 +0200
committerThomas Haller <thaller@redhat.com>2018-04-16 16:03:14 +0200
commit44d638d69d33a1a87eea41062e4ba0878675f109 (patch)
tree462619e2ac4949395e7b31016e1175a4273db087
parente5e8f86c3dcc0c5a64169f92089f6354c6a0cf60 (diff)
downloadNetworkManager-44d638d69d33a1a87eea41062e4ba0878675f109.tar.gz
auth-subject: minor cleanup of _new_unix_process()
Drop the g_assert(), which is always compiled in, but obviously can never fail.
-rw-r--r--src/nm-auth-subject.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nm-auth-subject.c b/src/nm-auth-subject.c
index 6e75ecfe8b..117a3815b1 100644
--- a/src/nm-auth-subject.c
+++ b/src/nm-auth-subject.c
@@ -186,15 +186,15 @@ _new_unix_process (GDBusMethodInvocation *context,
&dbus_sender,
&uid,
&pid);
- } else if (message) {
+ } else {
+ nm_assert (message);
success = nm_dbus_manager_get_caller_info_from_message (nm_dbus_manager_get (),
connection,
message,
&dbus_sender,
&uid,
&pid);
- } else
- g_assert_not_reached ();
+ }
if (!success)
return NULL;