]> git.ipfire.org Git - thirdparty/cups.git/commit
Avoid NULL strcmp argument 1197/head
authorErik <76848161+ErikUmble@users.noreply.github.com>
Thu, 13 Mar 2025 03:44:39 +0000 (23:44 -0400)
committerGitHub <noreply@github.com>
Thu, 13 Mar 2025 03:44:39 +0000 (23:44 -0400)
commiteabdf636ce3041a7664b5f3d28934efe17c39711
treecab5c356a63dee55293824778270eca4eae5fd19
parent0285c0f5408885222d63c7f3a3750c65f1541173
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