]> git.ipfire.org Git - thirdparty/cups.git/commit
Fixed gcc warning 887/head
authorAlexander Pevzner <pzz@apevzner.com>
Thu, 8 Feb 2024 08:49:02 +0000 (11:49 +0300)
committerAlexander Pevzner <pzz@apevzner.com>
Thu, 8 Feb 2024 15:56:27 +0000 (18:56 +0300)
commitcac443f40fc21d79e164337ce9b3ac9a46350235
tree9b799cfe13d0bc66500977c293af243be5c79a3f
parent29874c397791a1a4720465643de1237ca5ccf47d
Fixed gcc warning

In cups/dest.c:

    dest.c:1830:21: warning: ā€˜%s’ directive argument is null [-Wformat-overflow=]
     1733 |       DEBUG_printf(("1cupsGetNamedDest: Using name=\"%s\"...", name));
  |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This is really true, and gcc was smart enough to deduct it from context.
Obviously, we meant to print dest_name here.
cups/dest.c