]> git.ipfire.org Git - thirdparty/cups.git/commit
CUPS Web UI: Fix uninitialized variable during driver selection 242/head
authorZdenek Dohnal <zdohnal@redhat.com>
Mon, 6 Sep 2021 11:24:41 +0000 (13:24 +0200)
committerZdenek Dohnal <zdohnal@redhat.com>
Mon, 6 Sep 2021 11:24:41 +0000 (13:24 +0200)
commitd4c8d975f3b4e6d64b4478c03f1cbadef60c68aa
tree70ef3b3e72fbf0fbe779c1696124d62b2283b90f
parentc610c620d7395f596441369957a1fefb0ae5538e
CUPS Web UI: Fix uninitialized variable during driver selection

If device uri doesn't contain model name, `current_make_and_model` is
uninitialized during driver selection in CUPS Web UI.

The issue manifests itself during choosing IPP Everywhere driver, which
has the variable in its name, so it ends up into
`{current_make_and_model} - IPP Everywhere`.

Since we don't have any info about model at the time, I would propose to
just shorten the driver name for such cases. The PR works that way.
CHANGES.md
templates/choose-model.tmpl