Module Name:    src
Committed By:   rillig
Date:           Sun Aug  2 15:26:49 UTC 2020

Modified Files:
        src/usr.bin/make: var.c

Log Message:
make(1): remove unnecessary assignment in Var_Parse

In a variable expression without braces or parentheses, it is not
possible to have modifiers.  Therefore the assigned endc could not have
been used anywhere.


To generate a diff of this commit:
cvs rdiff -u -r1.397 -r1.398 src/usr.bin/make/var.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/make/var.c
diff -u src/usr.bin/make/var.c:1.397 src/usr.bin/make/var.c:1.398
--- src/usr.bin/make/var.c:1.397	Sun Aug  2 12:43:40 2020
+++ src/usr.bin/make/var.c	Sun Aug  2 15:26:49 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: var.c,v 1.397 2020/08/02 12:43:40 rillig Exp $	*/
+/*	$NetBSD: var.c,v 1.398 2020/08/02 15:26:49 rillig Exp $	*/
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: var.c,v 1.397 2020/08/02 12:43:40 rillig Exp $";
+static char rcsid[] = "$NetBSD: var.c,v 1.398 2020/08/02 15:26:49 rillig Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)var.c	8.3 (Berkeley) 3/19/94";
 #else
-__RCSID("$NetBSD: var.c,v 1.397 2020/08/02 12:43:40 rillig Exp $");
+__RCSID("$NetBSD: var.c,v 1.398 2020/08/02 15:26:49 rillig Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -3427,7 +3427,6 @@ Var_Parse(const char * const str, GNode 
 	} else {
 	    haveModifier = FALSE;
 	    tstr = str + 1;
-	    endc = str[1];
 	}
     } else {
 	endc = startc == PROPEN ? PRCLOSE : BRCLOSE;

Reply via email to