From d3c0ab98057a198e3fc24018303cebd279f3362a Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Thu, 15 Jun 2006 17:53:55 +0000 Subject: [PATCH] (as_search) [DEBUG]: Fix crash bug. We don't normally define DEBUG. --- src/lib/as/as_search.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/as/as_search.c b/src/lib/as/as_search.c index 269eacae..8c812dc0 100644 --- a/src/lib/as/as_search.c +++ b/src/lib/as/as_search.c @@ -63,15 +63,15 @@ as_search(struct as_data *adp) for (;;) { iter++; + /* see if we're done, one way or another */ + if (head == NULL) + break; + #ifdef DEBUG fprintf(stderr, "Iteration %d, head at %d, %d\n", iter, head->np->c.x, head->np->c.y); #endif /* DEBUG */ - /* see if we're done, one way or another */ - if (head == NULL) - break; - /* Add it to the cache */ as_add_cachepath(adp);