]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Use OBSTACK_ZALLOC when allocating batons
authorTom Tromey <tromey@adacore.com>
Fri, 18 Apr 2025 14:22:24 +0000 (08:22 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 6 May 2025 15:01:54 +0000 (09:01 -0600)
commit1d9fb3ba19c2c4daf5feb792c2abda9ad8b0c426
treebe80ea152f05374f223a3a5113e9ca2d3cd32568
parentb6acdd724dde54ac74fec2edbbeaf9c4a4c44f0f
Use OBSTACK_ZALLOC when allocating batons

I found some places in dwarf2/read.c that allocate a location baton,
but fail to initialize one of the fields.  It seems safer to me to use
OBSTACK_ZALLOC here, so this patch makes this change.  This will be
useful in a subsequent patch as well, where a new field is added to
one of the batons.
gdb/dwarf2/read.c