diff options
author | Theodore Tso <tytso@mit.edu> | 1995-04-28 19:58:06 +0000 |
---|---|---|
committer | Theodore Tso <tytso@mit.edu> | 1995-04-28 19:58:06 +0000 |
commit | 7ed6f9b1ae88478c5c775de92fc7bdff3db4205c (patch) | |
tree | 5990345f642a468ad937a461fb5edd70bd85555b /src/util/profile/prof_parse.c | |
parent | 1cc8ec19e5214a20cc6d21ce70bee4082c6bb6a7 (diff) | |
download | krb5-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.c | 2 |
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; |