Possibly expand the variable name's embedded variables before using it, as
authorMatthew Dillon <dillon@dragonflybsd.org>
Fri, 12 Nov 2004 23:26:52 +0000 (23:26 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Fri, 12 Nov 2004 23:26:52 +0000 (23:26 +0000)
commitdb29db6df3e7386f8e4df6102b1dd0e60d9906ba
tree5df3ff6fdfaf1d307890819529cd461e0eff231b
parent84de9e2382951287d85d10a009f8b59111b2d8bf
Possibly expand the variable name's embedded variables before using it, as
seen (somewhat) in NetBSD.  This catches a few extra recursion cases that
could be hidden by expanding a NIL variable causing an existing variable to
be returned (which caused infinite looping and climbing memory usage in at
least one case).

Taken-From: FreeBSD/1.27,1.28 (jmallett), originally obtained from NetBSD
usr.bin/make/var.c