aboutsummaryrefslogtreecommitdiff
path: root/src/util/profile/prof_parse.c
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1995-04-28 19:58:06 +0000
committerTheodore Tso <tytso@mit.edu>1995-04-28 19:58:06 +0000
commit7ed6f9b1ae88478c5c775de92fc7bdff3db4205c (patch)
tree5990345f642a468ad937a461fb5edd70bd85555b /src/util/profile/prof_parse.c
parent1cc8ec19e5214a20cc6d21ce70bee4082c6bb6a7 (diff)
downloadkrb5-7ed6f9b1ae88478c5c775de92fc7bdff3db4205c.zip
krb5-7ed6f9b1ae88478c5c775de92fc7bdff3db4205c.tar.gz
krb5-7ed6f9b1ae88478c5c775de92fc7bdff3db4205c.tar.bz2
Don't try to strip an empty line. This causes memory reference error
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5630 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/util/profile/prof_parse.c')
-rw-r--r--src/util/profile/prof_parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/profile/prof_parse.c b/src/util/profile/prof_parse.c
index 794e982..1e281e0 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;