The -s option was broken (missing braces around an else clause).
Noticed by: Thomas Stromberg <tstromberg@rtci.com> Obtained from: OpenBSD
This commit is contained in:
parent
3e5c0ef8dc
commit
ca7199ffd8
@ -1709,12 +1709,14 @@ setup(argc, argv)
|
||||
++sflag;
|
||||
if (eoptarg == NULL)
|
||||
schar = SCHAR;
|
||||
else
|
||||
else {
|
||||
schar = *eoptarg++;
|
||||
if (*eoptarg != '\0') {
|
||||
(void)fprintf(err,
|
||||
"pr: invalid value for -s %s\n", eoptarg);
|
||||
return(1);
|
||||
if (*eoptarg != '\0') {
|
||||
(void)fprintf(err,
|
||||
"pr: invalid value for -s %s\n",
|
||||
eoptarg);
|
||||
return(1);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 't':
|
||||
|
Loading…
Reference in New Issue
Block a user