]> git.ipfire.org Git - thirdparty/cups.git/commit
Avoid NULL strcmp argument
authorZdenek Dohnal <zdohnal@redhat.com>
Fri, 14 Mar 2025 06:42:25 +0000 (07:42 +0100)
committerZdenek Dohnal <zdohnal@redhat.com>
Fri, 14 Mar 2025 06:42:25 +0000 (07:42 +0100)
commitd19fd2e2c317eb9958be338ddc49dc34e472cae1
tree1371f24a41a231085b1f8b29cf9b135329c763e1
parentae4800905789adf8dcfbe9725aed87f2fbc53e3f
Avoid NULL strcmp argument

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.
backend/ipp.c