From: north Date: Fri, 8 Sep 2006 19:38:22 +0000 (+0000) Subject: fix DEBUG code in graph.c for e->key X-Git-Tag: LAST_LIBGRAPH~32^2~5894 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dc8ae5f634f0031ea1c61adb827ae6bdfb5e7548;p=graphviz fix DEBUG code in graph.c for e->key --- diff --git a/lib/graph/graph.c b/lib/graph/graph.c index 2e3bd5869..6b6b99327 100644 --- a/lib/graph/graph.c +++ b/lib/graph/graph.c @@ -82,10 +82,11 @@ Agedge_t *e0, *e1; printf("compare (%s,%s:%s),(%s,%s:%s) = %d\n", e0->head ? e0->head->name : "nil", e0->tail ? e0->tail->name : "nil", - e0->key ? e0->key : "nil", + e0->attr && e0->attr[KEYX]? e0->attr[KEYX] : "nil", e1->head ? e1->head->name : "nil", e1->tail ? e1->tail->name : "nil", - e1->key ? e1->key : "nil", rv); + e1->attr && e1->attr[KEYX]? e1->attr[KEYX] : "nil", + rv); return rv; } #endif