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 Kennaway 1999-12-04 03:19:15 +00:00
parent b26a5ea6fe
commit d68e2acd95

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