]> granicus.if.org Git - graphviz/commitdiff
Fix bug when mode=ipsep: overlap mode function requires non-NULL string
authorerg <devnull@localhost>
Mon, 12 Nov 2007 22:25:14 +0000 (22:25 +0000)
committererg <devnull@localhost>
Mon, 12 Nov 2007 22:25:14 +0000 (22:25 +0000)
lib/neatogen/adjust.c

index 6b84afa4324d82b3400202e63614f788871b31e6..fcd7951c3876a345ddbbe5c6777b9e5c350340f2 100644 (file)
@@ -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: