aboutsummaryrefslogtreecommitdiff
path: root/gprof/cg_arcs.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1997-03-17 15:55:41 +0000
committerIan Lance Taylor <ian@airs.com>1997-03-17 15:55:41 +0000
commit7dc37d80ff9349a873827e7b07e018ee3da5ef7a (patch)
treeaa9ec85e95f927f712b7e245b2fae1697ed59dfe /gprof/cg_arcs.c
parenta77aa7ec4b1a6eb18019cf59731bf1a524b0fea4 (diff)
downloadgdb-7dc37d80ff9349a873827e7b07e018ee3da5ef7a.zip
gdb-7dc37d80ff9349a873827e7b07e018ee3da5ef7a.tar.gz
gdb-7dc37d80ff9349a873827e7b07e018ee3da5ef7a.tar.bz2
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.
Diffstat (limited to 'gprof/cg_arcs.c')
-rw-r--r--gprof/cg_arcs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gprof/cg_arcs.c b/gprof/cg_arcs.c
index 196e356..f341a8f 100644
--- a/gprof/cg_arcs.c
+++ b/gprof/cg_arcs.c
@@ -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;