console-kit: do not use empty session
commit9e3e121e35769d13f6bee7f80ca8f40d7735bf0b
authorVictor Toso <victortoso@redhat.com>
Sat, 23 Apr 2016 08:20:20 +0000 (23 10:20 +0200)
committerVictor Toso <victortoso@redhat.com>
Thu, 28 Apr 2016 21:01:49 +0000 (28 23:01 +0200)
treefa482b4d29a716206d34070cdc9fc22e80c42789
parent15052a375b2149222d73d3fd8a703e7cfcc65be3
console-kit: do not use empty session

DBus might return empty string for active-session, probably in a non
user session (e.g. gdm). It is better to keep the variable as NULL as
we check against that (but never against empty strings).

Signed-off-by: Victor Toso <victortoso@redhat.com>
Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
src/console-kit.c