artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d69525
)
strip_comments is also called for dot lines, so sometimes the comment
author
espie
<espie@openbsd.org>
Tue, 5 Dec 2017 14:35:12 +0000
(14:35 +0000)
committer
espie
<espie@openbsd.org>
Tue, 5 Dec 2017 14:35:12 +0000
(14:35 +0000)
is all the line.
problem reported by Sergey Bronnikov
usr.bin/make/parse.c
patch
|
blob
|
history
diff --git
a/usr.bin/make/parse.c
b/usr.bin/make/parse.c
index
a1dedd1
..
dc8f546
100644
(file)
--- a/
usr.bin/make/parse.c
+++ b/
usr.bin/make/parse.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: parse.c,v 1.11
8 2016/10/23 14:54:14
espie Exp $ */
+/* $OpenBSD: parse.c,v 1.11
9 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 {