summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-transport.c
diff options
context:
space:
mode:
Diffstat (limited to 'dbus/dbus-transport.c')
-rw-r--r--dbus/dbus-transport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbus/dbus-transport.c b/dbus/dbus-transport.c
index f7b110ab..e580b08c 100644
--- a/dbus/dbus-transport.c
+++ b/dbus/dbus-transport.c
@@ -932,7 +932,7 @@ _dbus_transport_get_unix_user (DBusTransport *transport,
_dbus_auth_get_identity (transport->auth, &auth_identity);
- if (auth_identity.uid >= 0)
+ if (auth_identity.uid != DBUS_UID_UNSET)
{
*uid = auth_identity.uid;
return TRUE;