]> granicus.if.org Git - graphviz/commitdiff
Patch for egregious parser problems.
authorStephen North <north@pome.client.research.att.com>
Thu, 25 Jul 2013 18:20:55 +0000 (14:20 -0400)
committerStephen North <north@pome.client.research.att.com>
Thu, 25 Jul 2013 18:20:55 +0000 (14:20 -0400)
lib/cgraph/grammar.y

index 7b13ba3dddadd5e62bfc2b484eef549abcff4171..d8cb343c6d0cd81752165078e27af95bdadad7c4 100644 (file)
@@ -397,7 +397,7 @@ static void getedgeitems(int x)
                v = cons_list(S->nodelist.first);
                S->nodelist.first = S->nodelist.last = NILitem;
        }
-       else {if (S->subg) v = cons_subg(S->subg);}
+       else {if (S->subg) v = cons_subg(S->subg); S->subg = 0;}
        /* else nil append */
        if (v) listapp(&(S->edgelist),v);
 }