]> git.ipfire.org Git - thirdparty/cups-filters.git/commitdiff
cups-browsed: Call cupsGetNamedDest() only if "OnlyUnsupportedByCUPS No"
authorTill Kamppeter <till.kamppeter@gmail.com>
Sat, 20 Jun 2020 12:17:26 +0000 (14:17 +0200)
committerTill Kamppeter <till.kamppeter@gmail.com>
Sat, 20 Jun 2020 12:17:26 +0000 (14:17 +0200)
utils/cups-browsed.c

index d6d78e90e9fd887746f3e709d196e6a0b3d48f5a..758fb80684f87c11371c5d9e398f33ef1b12ea19 100644 (file)
@@ -7807,7 +7807,9 @@ gboolean update_cups_queues(gpointer unused) {
 #ifdef HAVE_CUPS_1_6
       /* Check whether there is a temporary CUPS queue which we would
          overwrite */
-      dest = cupsGetNamedDest(http, p->queue_name, NULL);
+      dest = NULL;
+      if (OnlyUnsupportedByCUPS == 0)
+        dest = cupsGetNamedDest(http, p->queue_name, NULL);
       if (dest) {
        /* CUPS has found a queue with this name.
           Either CUPS generates a temporary queue here or we have already