From: espie Date: Tue, 5 Dec 2017 14:35:12 +0000 (+0000) Subject: strip_comments is also called for dot lines, so sometimes the comment X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=1b8cb7cf0c9f9787004c7fa0ac50ba0635ebeae2;p=openbsd strip_comments is also called for dot lines, so sometimes the comment is all the line. problem reported by Sergey Bronnikov --- 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 {