preproc: fix list iteration in the case of expand_indirect()
commitc0ab1cd15a8008d820ebbeedb04c53bc84afd995
authorH. Peter Anvin <hpa@zytor.com>
Sun, 19 Oct 2008 23:24:53 +0000 (19 16:24 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Sun, 19 Oct 2008 23:24:53 +0000 (19 16:24 -0700)
tree9d4a6d48f52ff49e8b2912801ebe4114d7238445
parent992fe7591dca84b0ec5c779dad2f17b46b8ddd84
preproc: fix list iteration in the case of expand_indirect()

Linked lists where an element may be deleted or substituted during
processing can be subtle to deal with.  Fix the iteration conditions
in this particular case.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
preproc.c