aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-02-06 16:22:14 +0000
committerAndrew Cagney <cagney@redhat.com>2005-02-06 16:22:14 +0000
commit5b90c7b5ebca2697d381a2da54383662b47874bb (patch)
tree66dda1a2effc690828d0cca74c36f86e33d7151c /gdb/value.c
parentc4f68ce31b3fc5dc3ef0da5c645573c38489ca21 (diff)
downloadgdb-5b90c7b5ebca2697d381a2da54383662b47874bb.zip
gdb-5b90c7b5ebca2697d381a2da54383662b47874bb.tar.gz
gdb-5b90c7b5ebca2697d381a2da54383662b47874bb.tar.bz2
2005-02-03 Andrew Cagney <cagney@gnu.org>
* utils.c (xzalloc): New function. * defs.h (XZALLOC): Use xzalloc. (xzalloc): Declare. * value.c (allocate_value): Allocate a zeroed buffer. * mdebugread.c (xzalloc): Delete.
Diffstat (limited to 'gdb/value.c')
-rw-r--r--gdb/value.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/value.c b/gdb/value.c
index 3ff911c..a871df3 100644
--- a/gdb/value.c
+++ b/gdb/value.c
@@ -83,7 +83,7 @@ allocate_value (struct type *type)
struct value *val;
struct type *atype = check_typedef (type);
- val = (struct value *) xmalloc (sizeof (struct value) + TYPE_LENGTH (atype));
+ val = (struct value *) xzalloc (sizeof (struct value) + TYPE_LENGTH (atype));
val->next = all_values;
all_values = val;
val->type = type;