summaryrefslogtreecommitdiffstats
path: root/usr.bin/join/join.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/join/join.c')
-rw-r--r--usr.bin/join/join.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/join/join.c b/usr.bin/join/join.c
index 276f988..a0229b5 100644
--- a/usr.bin/join/join.c
+++ b/usr.bin/join/join.c
@@ -46,7 +46,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)join.c 8.6 (Berkeley) 5/4/95";
#endif
static const char rcsid[] =
- "$Id: join.c,v 1.7 1997/07/15 09:57:28 charnier Exp $";
+ "$Id: join.c,v 1.8 1997/08/19 15:58:15 jlemon Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -458,7 +458,7 @@ outfield(lp, fieldno, out_empty)
{
if (needsep++)
(void)printf("%c", *tabchar);
- if (!ferror(stdout))
+ if (!ferror(stdout)) {
if (lp->fieldcnt <= fieldno || out_empty) {
if (empty != NULL)
(void)printf("%s", empty);
@@ -467,6 +467,7 @@ outfield(lp, fieldno, out_empty)
return;
(void)printf("%s", lp->fields[fieldno]);
}
+ }
if (ferror(stdout))
err(1, "stdout");
}
OpenPOWER on IntegriCloud