Mon Mar 17 10:54:47 1997 David Mosberger-Tang <davidm@azstarnet.com>

* cg_arcs.c (arc_add): memset() newly alloced arc to ensure
	all fields are initialized with 0.
This commit is contained in:
Ian Lance Taylor 1997-03-17 15:55:41 +00:00
parent a77aa7ec4b
commit 7dc37d80ff
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Mon Mar 17 10:54:47 1997 David Mosberger-Tang <davidm@azstarnet.com>
* cg_arcs.c (arc_add): memset() newly alloced arc to ensure
all fields are initialized with 0.
Sat Mar 15 19:17:31 1997 H.J. Lu <hjl@lucon.org>
* symtab.h (find_call): Declare.

View File

@ -84,6 +84,7 @@ DEFUN (arc_add, (parent, child, count),
return;
}
arc = (Arc *) xmalloc (sizeof (*arc));
memset (arc, 0, sizeof (*arc));
arc->parent = parent;
arc->child = child;
arc->count = count;