diff options
author | Michael Sweet <michael.r.sweet@gmail.com> | 2017-06-06 09:16:14 -0400 |
---|---|---|
committer | Michael Sweet <michael.r.sweet@gmail.com> | 2017-06-06 09:16:14 -0400 |
commit | 30afb232cda30f31058d31df23c6a493ed0ee649 (patch) | |
tree | b308eb0d5eb830303d26512932d2b45bf64af3c7 /systemv | |
parent | 0ebee56929f52bcd6f03977600df820fcd5efca6 (diff) | |
download | cups-30afb232cda30f31058d31df23c6a493ed0ee649.tar.gz |
Fix bug in argument processing.
Diffstat (limited to 'systemv')
-rw-r--r-- | systemv/lpstat.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/systemv/lpstat.c b/systemv/lpstat.c index a3474a6d7..5d3654dbf 100644 --- a/systemv/lpstat.c +++ b/systemv/lpstat.c @@ -77,7 +77,7 @@ main(int argc, /* I - Number of command-line arguments */ { for (opt = argv[i] + 1; *opt; opt ++) { - switch (argv[i][1]) + switch (*opt) { case 'D' : /* Show description */ long_status = 1; @@ -257,7 +257,6 @@ main(int argc, /* I - Number of command-line arguments */ cupsFreeDests(num_temp, temp); } - break; case 'f' : /* Show forms */ |