aboutsummaryrefslogtreecommitdiff
path: root/gprof/cg_arcs.c
diff options
context:
space:
mode:
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;