diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2007-03-20 03:50:40 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2007-03-20 03:50:40 +0000 |
commit | 9811dd20491d71b86c6029003d05fb8022093320 (patch) | |
tree | b18ba95828e2e0cefe707d3ec9905bd2c4a5ca9c /usr.bin/less | |
parent | 3062cd8b277b2f91c96ada9b87815608c0fa2853 (diff) |
remove some bogus *p tests from charles longeau
ok deraadt millert
Diffstat (limited to 'usr.bin/less')
-rw-r--r-- | usr.bin/less/tags.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/less/tags.c b/usr.bin/less/tags.c index 2aebe160708..e4387ae63fa 100644 --- a/usr.bin/less/tags.c +++ b/usr.bin/less/tags.c @@ -715,7 +715,7 @@ getentry(buf, tag, file, line) if (*p == 0) return (-1); *p++ = 0; - for ( ; *p && isspace(*p); p++) /* (skip blanks) */ + for ( ; isspace(*p); p++) /* (skip blanks) */ ; if (*p == 0) return (-1); @@ -727,7 +727,7 @@ getentry(buf, tag, file, line) { for ( ; *p && !isspace(*p); p++) /* (skip tag type) */ ; - for (; *p && isspace(*p); p++) /* (skip blanks) */ + for (; isspace(*p); p++) /* (skip blanks) */ ; } if (!isdigit(*p)) @@ -738,7 +738,7 @@ getentry(buf, tag, file, line) if (*p == 0) return (-1); *p++ = 0; - for ( ; *p && isspace(*p); p++) /* (skip blanks) */ + for ( ; isspace(*p); p++) /* (skip blanks) */ ; if (*p == 0) return (-1); |