summaryrefslogtreecommitdiff
path: root/read.c
diff options
context:
space:
mode:
Diffstat (limited to 'read.c')
-rw-r--r--read.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/read.c b/read.c
index 660b11a..f7e06ba 100644
--- a/read.c
+++ b/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. */