]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix logic error.
authorMichael R Sweet <michael.r.sweet@gmail.com>
Tue, 14 Mar 2017 13:10:55 +0000 (09:10 -0400)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Tue, 14 Mar 2017 13:10:55 +0000 (09:10 -0400)
scheduler/cups-driverd.cxx

index d7d017131a0424d340b84cdafc028adc03be3c65..903091129e63966c2fadf8feac4c93a843c9c6ea 100644 (file)
@@ -2123,7 +2123,7 @@ load_ppd(const char  *filename,           /* I - Real filename */
 
       if (is_direct && !is_storage)
         type = PPD_TYPE_OBJECT_DIRECT;
-      if (!is_direct && is_storage)
+      else if (!is_direct && is_storage)
         type = PPD_TYPE_OBJECT_STORAGE;
       else
         type = PPD_TYPE_OBJECT_ANY;