diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/elput/elput_logind.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elput/elput_logind.c b/src/lib/elput/elput_logind.c index ba7be0a763..82ce11ff16 100644 --- a/src/lib/elput/elput_logind.c +++ b/src/lib/elput/elput_logind.c | |||
@@ -523,7 +523,7 @@ _logind_connect(Elput_Manager **manager, const char *seat, unsigned int tty) | |||
523 | goto seat_err; | 523 | goto seat_err; |
524 | } | 524 | } |
525 | 525 | ||
526 | if (!strcmp(seat, "seat0")) | 526 | if ((seat) && (!strcmp(seat, "seat0"))) |
527 | { | 527 | { |
528 | if (!_logind_session_vt_get(em->sid, &em->vt_num)) | 528 | if (!_logind_session_vt_get(em->sid, &em->vt_num)) |
529 | { | 529 | { |