]> granicus.if.org Git - graphviz/commitdiff
removed redundant memset after N_NEW of didset field [emdengansner]
authorglenlow <devnull@localhost>
Tue, 26 Feb 2008 03:35:43 +0000 (03:35 +0000)
committerglenlow <devnull@localhost>
Tue, 26 Feb 2008 03:35:43 +0000 (03:35 +0000)
lib/graph/graph.c
lib/graph/node.c

index 507ee6fa23c32f020afb73c0079eb17057cd1247..bf8a7761f994d32bea45edc657f8b2cd03f9fc90 100644 (file)
@@ -218,7 +218,6 @@ static Agraph_t *agNEWgraph(char *name, Agraph_t * parent, int kind)
        if (nobj) {
            g->attr = N_NEW(nobj, char *);
                g->didset = N_NEW((nobj + CHAR_BIT - 1) / CHAR_BIT, char);
-               memset(g->didset, 0, (nobj + CHAR_BIT - 1) / CHAR_BIT);
        }
        else {
            g->attr = NULL;
@@ -233,7 +232,6 @@ static Agraph_t *agNEWgraph(char *name, Agraph_t * parent, int kind)
        if (nobj) {
            g->attr = N_NEW(nobj, char *);
                g->didset = N_NEW((nobj + CHAR_BIT - 1) / CHAR_BIT, char);
-               memset(g->didset, 0, (nobj + CHAR_BIT - 1) / CHAR_BIT);
        }
        else {
            g->attr = NULL;
index 659600585f86220383d79437a21977b38c642d39..b1e90dcdd79956aec43cacfbf17e0b8a83a27946 100644 (file)
@@ -122,7 +122,6 @@ Agnode_t *agNEWnode(Agraph_t * subg, char *name, Agnode_t * proto)
     if (nobj) {
                n->attr = N_NEW(nobj, char *);
                n->didset = N_NEW((nobj + CHAR_BIT - 1) / CHAR_BIT, char);
-               memset(n->didset, 0, (nobj + CHAR_BIT - 1) / CHAR_BIT);
        }
     else {
                n->attr = NULL;