]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
scheduler: Fix cupsd activated on-demand via socket
authorzdohnal <zdohnal@redhat.com>
Tue, 18 Jun 2024 08:41:50 +0000 (10:41 +0200)
committerGitHub <noreply@github.com>
Tue, 18 Jun 2024 08:41:50 +0000 (10:41 +0200)
If only the expected cups.sock is set as listener in cupsd.conf, the array Listeners was NULL. To prevent copying the code, do the array allocation earlier and have only one check for Listeners, in service_checkin() which is run every time cupsd starts.

Fixes #985


Trivial merge