diff options
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; |