From 4c35218eab6ed3b4c5ddd454809820f09030480f Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Sun, 26 Oct 2014 11:36:59 -0700 Subject: block.c (allocate_block): Use OBSTACK_ZALLOC instead of obstack_alloc. gdb/ChangeLog: * block.c (allocate_block): Use OBSTACK_ZALLOC instead of obstack_alloc. --- gdb/block.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'gdb/block.c') diff --git a/gdb/block.c b/gdb/block.c index 4a31ea9..8d40c9d 100644 --- a/gdb/block.c +++ b/gdb/block.c @@ -373,14 +373,7 @@ block_global_block (const struct block *block) struct block * allocate_block (struct obstack *obstack) { - struct block *bl = obstack_alloc (obstack, sizeof (struct block)); - - BLOCK_START (bl) = 0; - BLOCK_END (bl) = 0; - BLOCK_FUNCTION (bl) = NULL; - BLOCK_SUPERBLOCK (bl) = NULL; - BLOCK_DICT (bl) = NULL; - BLOCK_NAMESPACE (bl) = NULL; + struct block *bl = OBSTACK_ZALLOC (obstack, struct block); return bl; } -- cgit v1.1