diff options
author | 2017-12-05 14:35:12 +0000 | |
---|---|---|
committer | 2017-12-05 14:35:12 +0000 | |
commit | 1b8cb7cf0c9f9787004c7fa0ac50ba0635ebeae2 (patch) | |
tree | e1de8b7a35a51313c8939bc6e4926384b72e70a7 | |
parent | use a global BN_CTX; from kshe with a twist from myself (diff) | |
download | wireguard-openbsd-1b8cb7cf0c9f9787004c7fa0ac50ba0635ebeae2.tar.xz wireguard-openbsd-1b8cb7cf0c9f9787004c7fa0ac50ba0635ebeae2.zip |
strip_comments is also called for dot lines, so sometimes the comment
is all the line.
problem reported by Sergey Bronnikov
-rw-r--r-- | usr.bin/make/parse.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/make/parse.c b/usr.bin/make/parse.c index a1dedd1240b..dc8f546aac6 100644 --- a/usr.bin/make/parse.c +++ b/usr.bin/make/parse.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.c,v 1.118 2016/10/23 14:54:14 espie Exp $ */ +/* $OpenBSD: parse.c,v 1.119 2017/12/05 14:35:12 espie Exp $ */ /* $NetBSD: parse.c,v 1.29 1997/03/10 21:20:04 christos Exp $ */ /* @@ -1043,7 +1043,6 @@ strip_comments(Buffer copy, const char *line) const char *p; comment = strchr(line, '#'); - assert(comment != line); if (comment == NULL) return (char *)line; else { |