]> git.ipfire.org Git - thirdparty/cups.git/commit
Fixed gcc warning 888/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 16:10:42 +0000 (19:10 +0300)
commit7fedcb1786bb20f156e01fc49faee353dad360fa
tree13295fd7a785caf35855d1d11eeaa675edf78100
parentdc6d173de93eac51b5358fc438c5eec7dca6aa0a
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