diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2016-07-14 14:25:24 +1200 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2016-07-14 14:25:24 +1200 |
commit | f08c959e0b3a3eb5fbc64f3cd27058df61453605 (patch) | |
tree | 21e76ac72919135b2b751069dbfb9268fc531b6f | |
parent | 1361a54a14ac5fad40cd8bc215f0fb69d95f2f68 (diff) | |
download | lightdm-git-f08c959e0b3a3eb5fbc64f3cd27058df61453605.tar.gz |
Fix session_get_login1_session_id warning
-rw-r--r-- | src/lightdm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lightdm.c b/src/lightdm.c index 6e241522..e64fc874 100644 --- a/src/lightdm.c +++ b/src/lightdm.c @@ -1123,9 +1123,10 @@ login1_active_session_changed_cb (Login1Seat *login1_seat, const gchar *login1_s if (seat) { Session *active_session; - active_session = seat_get_expected_active_session (seat); - if (g_strcmp0 (login1_session_id, session_get_login1_session_id (active_session)) == 0) + active_session = seat_get_expected_active_session (seat); + if (active_session != NULL && + g_strcmp0 (login1_session_id, session_get_login1_session_id (active_session)) == 0) { // Session is already active g_debug ("Session %s is already active", login1_session_id); |