]> git.ipfire.org Git - thirdparty/cups-filters.git/commit
Do not pass NULL to fprintf() 230/head
authorMikolaj Kucharski <mikolaj@kucharski.name>
Thu, 7 May 2020 05:24:35 +0000 (05:24 +0000)
committerMikolaj Kucharski <mikolaj@kucharski.name>
Thu, 7 May 2020 05:24:35 +0000 (05:24 +0000)
commitfa2ac9450d3c24266c17142b9c597bee7e3ee664
tree68ae47282db502ee55dc171ca74114da1e318523
parente3b8f488e1dc164a943d7fff00f149338c54f820
Do not pass NULL to fprintf()

Passing NULL to printf-family of functions is undefined
behaviour. OpenBSD has detection mechanism for occurrences
of such condition. On my machine I get following messages
in syslog, while printing:

vfprintf %s NULL in "DEBUG: OUTFORMAT="%s", so output format will be %s "

Changes in this diff make those messages go away.
filter/gstoraster.c
filter/rastertopdf.cpp