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:
kris 1999-12-04 03:19:15 +00:00
parent 3e5c0ef8dc
commit ca7199ffd8

View File

@ -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':