* values.c (set_internalvar): Force evaluation of lazy values.

Bug reported by RMS.
This commit is contained in:
John Gilmore 1992-05-05 05:31:21 +00:00
parent e727f8ea91
commit 6fab5bef69
2 changed files with 10 additions and 0 deletions

View file

@ -453,6 +453,11 @@ set_internalvar (var, val)
free ((PTR)var->value);
var->value = value_copy (val);
/* Force the value to be fetched from the target now, to avoid problems
later when this internalvar is referenced and the target is gone or
has changed. */
if (VALUE_LAZY (var->value))
value_fetch_lazy (var->value);
release_value (var->value);
}