]> granicus.if.org Git - graphviz/commitdiff
fix for Bug # 1151 by using ZALLOC instead of ALLOC
authorellson <devnull@localhost>
Mon, 25 Jun 2007 15:50:22 +0000 (15:50 +0000)
committerellson <devnull@localhost>
Mon, 25 Jun 2007 15:50:22 +0000 (15:50 +0000)
lib/common/labels.c

index 48bec82d6c455347b758e49bb2d8920813c09252..44b41d32429c86415c37e9fce79b3821ccbcc807 100644 (file)
@@ -25,7 +25,7 @@ static void storeline(graph_t *g, textlabel_t *lp, char *line, char terminator)
     textpara_t *para;
 
     lp->u.txt.para =
-       ALLOC(lp->u.txt.nparas + 2, lp->u.txt.para, textpara_t);
+       ZALLOC(lp->u.txt.nparas + 2, lp->u.txt.para, textpara_t);
     para = &(lp->u.txt.para[lp->u.txt.nparas]);
     para->str = line;
     para->just = terminator;