]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Add missing return after error.
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Sun, 18 Mar 2007 03:21:36 +0000 (03:21 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Sun, 18 Mar 2007 03:21:36 +0000 (03:21 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@6347 7a7537e8-13f0-0310-91df-b6672ffda945

systemv/lpoptions.c

index 4ee39fb14cf88d80a21a302cbe82ff405477a7d8..63fbaba71fca57795820bb390a3951736ca8e961 100644 (file)
@@ -175,7 +175,10 @@ main(int  argc,                            /* I - Number of command-line arguments */
                dest = dests;
 
              if (dest == NULL)
+              {
                _cupsLangPuts(stderr, _("lpoptions: No printers!?!\n"));
+                return (1);
+              }
 
              for (j = 0; j < dest->num_options; j ++)
                if (cupsGetOption(dest->options[j].name, num_options, options) == NULL)
@@ -248,7 +251,10 @@ main(int  argc,                            /* I - Number of command-line arguments */
                dest = dests;
 
              if (dest == NULL)
+              {
                _cupsLangPuts(stderr, _("lpoptions: No printers!?!\n"));
+                return (1);
+              }
 
              for (j = 0; j < dest->num_options; j ++)
                if (cupsGetOption(dest->options[j].name, num_options, options) == NULL)