fix error messages, avoid dereferencing null pointers.
authorespie <espie@openbsd.org>
Mon, 6 Jan 2014 12:08:18 +0000 (12:08 +0000)
committerespie <espie@openbsd.org>
Mon, 6 Jan 2014 12:08:18 +0000 (12:08 +0000)
commit0adf68291907c76b0f7e7470f3a9afb00e6fa4d2
tree20529141b208891406c63e292d2f2dc7bda35f30
parent495a186e6c2a9831e29bf96e9dd5b12b73f4a4f2
fix error messages, avoid dereferencing null pointers.
- the code becomes too indented, pull it into a separate function
- add an extra hint, the current_gnode.
- specifically, variables may be expanded during
target: prereq  solving in Suff_FindDeps, this is after parsing,
not during command execution, and the only actual indication with have is
that we're resolving a prereq of.

(this ought to fix mk35, and partially solve mk34)
usr.bin/make/suff.c
usr.bin/make/var.c
usr.bin/make/var.h