diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-06-21 22:29:25 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-06-21 22:29:25 +0200 |
commit | 77527da0a02029ce9c5ec86d5db5ea42147a658f (patch) | |
tree | b8601a8d026bf6aef5445cb070f42edf1ce834a4 /src/logind-seat.c | |
parent | 9418f14772e7e646fe981d45506b3bbce68d6ccf (diff) |
logind: make idle hint logic work
Diffstat (limited to 'src/logind-seat.c')
-rw-r--r-- | src/logind-seat.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/logind-seat.c b/src/logind-seat.c index 09356b6b09..12a1b80647 100644 --- a/src/logind-seat.c +++ b/src/logind-seat.c @@ -230,8 +230,7 @@ int seat_set_active(Seat *s, Session *session) { Session *old_active; assert(s); - assert(session); - assert(session->seat == s); + assert(!session || session->seat == s); if (session == s->active) return 0; |