From eafc91a3506a082956fbdc8f0fb1210d00f1e035 Mon Sep 17 00:00:00 2001 From: Chet Ramey Date: Tue, 22 Nov 2011 20:00:31 -0500 Subject: Bash-4.2 patch 6 --- variables.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'variables.c') diff --git a/variables.c b/variables.c index daacdbf0..7bb850fa 100644 --- a/variables.c +++ b/variables.c @@ -3660,7 +3660,7 @@ chkexport (name) SHELL_VAR *v; v = find_variable (name); - if (exported_p (v)) + if (v && exported_p (v)) { array_needs_making = 1; maybe_make_export_env (); -- cgit v1.2.1