diff options
author | Ian Lance Taylor <ian@airs.com> | 1997-03-17 15:55:41 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1997-03-17 15:55:41 +0000 |
commit | 7dc37d80ff9349a873827e7b07e018ee3da5ef7a (patch) | |
tree | aa9ec85e95f927f712b7e245b2fae1697ed59dfe /gprof/cg_arcs.c | |
parent | a77aa7ec4b1a6eb18019cf59731bf1a524b0fea4 (diff) | |
download | gdb-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.c | 1 |
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; |