summaryrefslogtreecommitdiff
path: root/src/dbusbind.c
diff options
context:
space:
mode:
authorMichael Albinus <michael.albinus@gmx.de>2014-02-18 08:46:38 +0100
committerMichael Albinus <michael.albinus@gmx.de>2014-02-18 08:46:38 +0100
commit1825653e3dd0c9f1d6361f0afc62301b68015acc (patch)
tree81e837cbf301d2d28d0d030438023a00cf6018b9 /src/dbusbind.c
parent526e126f7910e27854411a48050731d8d450c387 (diff)
downloademacs-1825653e3dd0c9f1d6361f0afc62301b68015acc.tar.gz
* dbusbind.c (xd_close_bus): Apply proper check on busobj.
Diffstat (limited to 'src/dbusbind.c')
-rw-r--r--src/dbusbind.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dbusbind.c b/src/dbusbind.c
index f6df5107db1..1c386f02c90 100644
--- a/src/dbusbind.c
+++ b/src/dbusbind.c
@@ -973,7 +973,7 @@ xd_get_connection_references (DBusConnection *connection)
return *refcount;
}
-/* Convert a Lisp dbus object to a pointer */
+/* Convert a Lisp D-Bus object to a pointer. */
static DBusConnection*
xd_lisp_dbus_to_dbus (Lisp_Object bus)
{
@@ -1095,7 +1095,7 @@ xd_close_bus (Lisp_Object bus)
return;
busobj = CDR_SAFE(val);
- if (NILP (val)) {
+ if (NILP (busobj)) {
xd_registered_buses = Fdelete (val, xd_registered_buses);
return;
}