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