Bash-4.2 patch 6

This commit is contained in:
Chet Ramey 2011-11-22 20:00:31 -05:00
commit eafc91a350
2 changed files with 2 additions and 2 deletions

View file

@ -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 ();