summaryrefslogtreecommitdiff
path: root/src/ck-seat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ck-seat.c')
-rw-r--r--src/ck-seat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ck-seat.c b/src/ck-seat.c
index af7db59..2e48963 100644
--- a/src/ck-seat.c
+++ b/src/ck-seat.c
@@ -770,6 +770,8 @@ ck_seat_register (CkSeat *seat)
{
GError *error = NULL;
+ g_return_val_if_fail (CK_IS_SEAT (seat), FALSE);
+
error = NULL;
seat->priv->connection = dbus_g_bus_get (DBUS_BUS_SYSTEM, &error);
if (seat->priv->connection == NULL) {