From: erg Date: Mon, 12 Nov 2007 22:25:14 +0000 (+0000) Subject: Fix bug when mode=ipsep: overlap mode function requires non-NULL string X-Git-Tag: LAST_LIBGRAPH~32^2~5034 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=80ff26e2285d702b861156335c2ccfa18fd6503d;p=graphviz Fix bug when mode=ipsep: overlap mode function requires non-NULL string --- diff --git a/lib/neatogen/adjust.c b/lib/neatogen/adjust.c index 6b84afa43..fcd7951c3 100644 --- a/lib/neatogen/adjust.c +++ b/lib/neatogen/adjust.c @@ -722,7 +722,8 @@ static adjust_data *getAdjustMode(char *s) adjust_data *graphAdjustMode(graph_t *G) { - return (getAdjustMode (agget(G, "overlap"))); + char* am = agget(G, "overlap"); + return (getAdjustMode (am ? am : "")); } /* removeOverlapAs: