From 0eb597dd3b6e3b0deb431a37a8048164a793097a Mon Sep 17 00:00:00 2001 From: Alessandro Bono Date: Thu, 29 Sep 2022 11:26:45 +0200 Subject: gdm-session-worker: Assert that service cannot be NULL pam_start() requires the first, third and fourth arguments to not be NULL. Assert that the first one is not NULL. --- daemon/gdm-session-worker.c | 1 + 1 file changed, 1 insertion(+) (limited to 'daemon') diff --git a/daemon/gdm-session-worker.c b/daemon/gdm-session-worker.c index 2a39d632..88882380 100644 --- a/daemon/gdm-session-worker.c +++ b/daemon/gdm-session-worker.c @@ -1157,6 +1157,7 @@ gdm_session_worker_initialize_pam (GdmSessionWorker *worker, int error_code; char tty_string[256]; + g_assert (service != NULL); g_assert (worker->pam_handle == NULL); g_debug ("GdmSessionWorker: initializing PAM; service=%s username=%s seat=%s", -- cgit v1.2.1