]> git.ipfire.org Git - thirdparty/cups-filters.git/commitdiff
driverless.c: accept clean ipp uris too for 'driverless cat' 296/head
authorZdenek Dohnal <zdohnal@redhat.com>
Wed, 26 Aug 2020 11:23:05 +0000 (13:23 +0200)
committerZdenek Dohnal <zdohnal@redhat.com>
Wed, 26 Aug 2020 11:23:05 +0000 (13:23 +0200)
utils/driverless.c

index ed2e040355148d753dc89564452fdcb6b32aaf29..3593fe3dfa9956cdacbe59a6bc6ca31db78ddcde 100644 (file)
@@ -851,14 +851,12 @@ main(int argc, char*argv[]) {
        }
        if (val) {
          /* Generate PPD file */
-         if (!strncasecmp(val, "driverless:", 11)){
+         if (!strncasecmp(val, "driverless:", 11))
            val += 11;
-           exit(generate_ppd(val,isFax));
-         }
-         if (!strncasecmp(val, "driverless-fax:", 15)){
+         else if (!strncasecmp(val, "driverless-fax:", 15))
            val += 15;
-           exit(generate_ppd(val,isFax));
-         }
+
+         exit(generate_ppd(val,isFax));
        } else {
          fprintf(stderr,
                  "Reading command line option \"cat\", no driver URI supplied.\n\n");