diff options
author | Boris Kolpackov <boris@kolpackov.net> | 2005-12-14 13:11:18 +0000 |
---|---|---|
committer | Boris Kolpackov <boris@kolpackov.net> | 2005-12-14 13:11:18 +0000 |
commit | 3d0d9e5d75eecd48d106918e0f568590f67fc26a (patch) | |
tree | 6e6df8bedeb15bcf6f643a48a8295f2637016302 /read.c | |
parent | 4bd6db9df127f74a0fd957ddbda4743a9c22e053 (diff) | |
download | gunmake-3d0d9e5d75eecd48d106918e0f568590f67fc26a.tar.gz |
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.
Diffstat (limited to 'read.c')
-rw-r--r-- | read.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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. */ |