summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pmcstudy/pmcstudy.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/pmcstudy/pmcstudy.c')
-rw-r--r--usr.sbin/pmcstudy/pmcstudy.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/pmcstudy/pmcstudy.c b/usr.sbin/pmcstudy/pmcstudy.c
index 6547489..bb577b9 100644
--- a/usr.sbin/pmcstudy/pmcstudy.c
+++ b/usr.sbin/pmcstudy/pmcstudy.c
@@ -2130,7 +2130,11 @@ test_for_a_pmc(const char *pmc, int out_so_far)
printf(" ");
}
}
- printf("%s", &line[j]);
+ if (len) {
+ printf("%s", &line[j]);
+ } else {
+ printf("\n");
+ }
goto out;
}
}
OpenPOWER on IntegriCloud