mirror of
https://github.com/mirror/make.git
synced 2025-01-26 20:30:36 +08:00
Fixed record_target_var to initialize variable's export field with v_default
instead of leaving it "initialized" by whatever garbage happened to be on the heap.
This commit is contained in:
parent
4bd6db9df1
commit
3d0d9e5d75
@ -1,3 +1,9 @@
|
||||
2005-12-14 Boris Kolpackov <boris@kolpackov.net>
|
||||
|
||||
* read.c (record_target_var): Initialize variable's export field
|
||||
with v_default instead of leaving it "initialized" by whatever
|
||||
garbage happened to be on the heap.
|
||||
|
||||
2005-12-12 Paul D. Smith <psmith@gnu.org>
|
||||
|
||||
* make.1: Fix some display errors and document all existing options.
|
||||
|
3
read.c
3
read.c
@ -1838,8 +1838,7 @@ record_target_var (struct nameseq *filenames, char *defn,
|
||||
/* Set up the variable to be *-specific. */
|
||||
v->origin = origin;
|
||||
v->per_target = 1;
|
||||
if (exported)
|
||||
v->export = v_export;
|
||||
v->export = exported ? v_export : v_default;
|
||||
|
||||
/* If it's not an override, check to see if there was a command-line
|
||||
setting. If so, reset the value. */
|
||||
|
Loading…
Reference in New Issue
Block a user