Skip to content

Commit

Permalink
ck_seat_activate_session: Add NULL check for active_session
Browse files Browse the repository at this point in the history
Only got a NULL here on FreeBSD/aarch64, for some reason
  • Loading branch information
valpackett committed Jul 1, 2019
1 parent 18a0585 commit 42b8c93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ck-seat.c
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ ck_seat_activate_session (CkSeat *seat,

g_debug ("Attempting to activate VT %u", num);

if (seat->priv->active_session != session) {
if (seat->priv->active_session != session && seat->priv->active_session != NULL) {
/* let the old session know it's about to change */
ck_session_set_active (seat->priv->active_session, FALSE, TRUE);
}
Expand Down

0 comments on commit 42b8c93

Please sign in to comment.