]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
backend/ipp.c: Avoid NULL strcmp argument
authorzdohnal <zdohnal@redhat.com>
Fri, 14 Mar 2025 05:44:45 +0000 (06:44 +0100)
committerGitHub <noreply@github.com>
Fri, 14 Mar 2025 05:44:45 +0000 (06:44 +0100)
It is possible for format to be NULL (as described in the function signature) which causes a segmentation fault when it is passed to strcmp. This patch changes the conditional to short-circuit if format is NULL and only call strcmp otherwise.


Trivial merge