From 1b8cb7cf0c9f9787004c7fa0ac50ba0635ebeae2 Mon Sep 17 00:00:00 2001 From: espie Date: Tue, 5 Dec 2017 14:35:12 +0000 Subject: [PATCH] strip_comments is also called for dot lines, so sometimes the comment is all the line. problem reported by Sergey Bronnikov --- usr.bin/make/parse.c | 3 +-- 1 file changed, 1 insertion(+), 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 { -- 2.20.1