Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make make(1): remove needless assignment to line_end...
details: https://anonhg.NetBSD.org/src/rev/05a386b4c57c
branches: trunk
changeset: 948241:05a386b4c57c
user: rillig <rillig%NetBSD.org@localhost>
date: Tue Dec 22 08:10:39 2020 +0000
description:
make(1): remove needless assignment to line_end in ParseGetLine
diffstat:
usr.bin/make/parse.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diffs (31 lines):
diff -r d67c87bb756e -r 05a386b4c57c usr.bin/make/parse.c
--- a/usr.bin/make/parse.c Tue Dec 22 08:05:08 2020 +0000
+++ b/usr.bin/make/parse.c Tue Dec 22 08:10:39 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: parse.c,v 1.511 2020/12/22 08:05:08 rillig Exp $ */
+/* $NetBSD: parse.c,v 1.512 2020/12/22 08:10:39 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -117,7 +117,7 @@
#include "pathnames.h"
/* "@(#)parse.c 8.3 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: parse.c,v 1.511 2020/12/22 08:05:08 rillig Exp $");
+MAKE_RCSID("$NetBSD: parse.c,v 1.512 2020/12/22 08:10:39 rillig Exp $");
/* types and constants */
@@ -2853,10 +2853,8 @@
}
/* Brutally ignore anything after a non-escaped '#' in non-commands. */
- if (firstComment != NULL && line[0] != '\t') {
- line_end = firstComment;
- *line_end = '\0';
- }
+ if (firstComment != NULL && line[0] != '\t')
+ *firstComment = '\0';
/* If we didn't see a '\\' then the in-situ data is fine. */
if (firstBackslash == NULL)
Home |
Main Index |
Thread Index |
Old Index