summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2017-12-05 14:35:13 +0000
committerMarc Espie <espie@cvs.openbsd.org>2017-12-05 14:35:13 +0000
commit8a6ca3ddde7e10e1f60ccfffed9cba3695d5b3c4 (patch)
tree60d7cd255f6b022f94b696ce9262c0e4788227e6
parentda5706b57e6dbfdb49dfc9a46e7388fc7b5e2f1d (diff)
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.c3
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 {