fix dangling pointer issue. If the node being processed is replaced,
commit53f92fef4d33d706452ca9da185697cd144c563b
authorKent Hansen <kentmhan@gmail.com>
Sun, 7 Dec 2008 02:04:22 +0000 (7 03:04 +0100)
committerKent Hansen <kentmhan@gmail.com>
Sun, 7 Dec 2008 02:04:22 +0000 (7 03:04 +0100)
treeaf95137fc8003c088b85f6ea7134b951013fdb64
parentedef7ff77ed04063f50d42f45c010811aae021bb
fix dangling pointer issue. If the node being processed is replaced,
we can't return 1 indicating that child nodes should be processed,
since the traversal function still will then try to traverse the
children of the old (deleted) node; instead we need to set the next
pointer to the new node and return 0.
astproc.c