(as_search) [DEBUG]: Fix crash bug. We don't normally define DEBUG.
This commit is contained in:
parent
0f2cfef599
commit
d3c0ab9805
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue