Module Name: src Committed By: rillig Date: Fri Jan 7 09:28:35 UTC 2022
Modified Files: src/usr.bin/make: parse.c Log Message: make: remove redundant variable in ParseDependencyTargetWord No functional change. To generate a diff of this commit: cvs rdiff -u -r1.623 -r1.624 src/usr.bin/make/parse.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/parse.c diff -u src/usr.bin/make/parse.c:1.623 src/usr.bin/make/parse.c:1.624 --- src/usr.bin/make/parse.c:1.623 Fri Jan 7 09:19:43 2022 +++ src/usr.bin/make/parse.c Fri Jan 7 09:28:35 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: parse.c,v 1.623 2022/01/07 09:19:43 rillig Exp $ */ +/* $NetBSD: parse.c,v 1.624 2022/01/07 09:28:35 rillig Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1993 @@ -106,7 +106,7 @@ #include "pathnames.h" /* "@(#)parse.c 8.3 (Berkeley) 3/19/94" */ -MAKE_RCSID("$NetBSD: parse.c,v 1.623 2022/01/07 09:19:43 rillig Exp $"); +MAKE_RCSID("$NetBSD: parse.c,v 1.624 2022/01/07 09:28:35 rillig Exp $"); /* * Structure for a file being read ("included file") @@ -884,14 +884,11 @@ ParseDependencyTargetWord(char **pp, con * have been discovered in the initial Var_Subst and * we wouldn't be here. */ - const char *nested_p = cp; - FStr nested_val; + FStr val; - (void)Var_Parse(&nested_p, SCOPE_CMDLINE, - VARE_PARSE_ONLY, &nested_val); - /* TODO: handle errors */ - FStr_Done(&nested_val); - cp += nested_p - cp; + (void)Var_Parse(&cp, SCOPE_CMDLINE, + VARE_PARSE_ONLY, &val); + FStr_Done(&val); } else cp++; }