1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-06 09:17:25 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=54114

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