summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util/profile/ChangeLog5
-rw-r--r--src/util/profile/prof_parse.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/util/profile/ChangeLog b/src/util/profile/ChangeLog
index 3ff592e71..aa0d55a5e 100644
--- a/src/util/profile/ChangeLog
+++ b/src/util/profile/ChangeLog
@@ -1,3 +1,8 @@
+Fri Apr 28 15:54:40 1995 Theodore Y. Ts'o <tytso@dcl>
+
+ * prof_parse.c (strip_line): Don't try to strip an empty line.
+ This causes memory reference error.
+
Thu Apr 27 20:26:48 1995 <tytso@rsx-11.mit.edu>
* Makefile.in (clean-unix): Remove profile.h and test_profile
diff --git a/src/util/profile/prof_parse.c b/src/util/profile/prof_parse.c
index 794e98266..1e281e0b2 100644
--- a/src/util/profile/prof_parse.c
+++ b/src/util/profile/prof_parse.c
@@ -32,7 +32,7 @@ void strip_line(line)
{
char *p;
- while (1) {
+ while (*line) {
p = line + strlen(line) - 1;
if ((*p == '\n') || (*p == '\r'))
*p = 0;