(as_search) [DEBUG]: Fix crash bug. We don't normally define DEBUG.

This commit is contained in:
Markus Armbruster 2006-06-15 17:53:55 +00:00
parent 0f2cfef599
commit d3c0ab9805

View file

@ -63,15 +63,15 @@ as_search(struct as_data *adp)
for (;;) { for (;;) {
iter++; iter++;
/* see if we're done, one way or another */
if (head == NULL)
break;
#ifdef DEBUG #ifdef DEBUG
fprintf(stderr, "Iteration %d, head at %d, %d\n", iter, fprintf(stderr, "Iteration %d, head at %d, %d\n", iter,
head->np->c.x, head->np->c.y); head->np->c.x, head->np->c.y);
#endif /* DEBUG */ #endif /* DEBUG */
/* see if we're done, one way or another */
if (head == NULL)
break;
/* Add it to the cache */ /* Add it to the cache */
as_add_cachepath(adp); as_add_cachepath(adp);