summaryrefslogtreecommitdiff
path: root/src/login/pam-module.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/login/pam-module.c')
-rw-r--r--src/login/pam-module.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/login/pam-module.c b/src/login/pam-module.c
index 1c3a7437f8..46509245fb 100644
--- a/src/login/pam-module.c
+++ b/src/login/pam-module.c
@@ -457,9 +457,9 @@ _public_ PAM_EXTERN int pam_sm_open_session(
if (!isempty(display) && vtnr <= 0) {
if (isempty(seat))
- get_seat_from_display(handle, display, &seat, &vtnr);
+ get_seat_from_display(display, &seat, &vtnr);
else if (streq(seat, "seat0"))
- get_seat_from_display(handle, display, NULL, &vtnr);
+ get_seat_from_display(display, NULL, &vtnr);
}
type = !isempty(display) ? "x11" :