Make sure terminal settings are restored before exiting
[deliverable/binutils-gdb.git] / gdb / solib-aix.c
index 8f335f6a76c3649fc342bc15dc4bc870d3496dea..99258f6065ab1e165eb4df4708fa28239eddb26b 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2013-2014 Free Software Foundation, Inc.
+/* Copyright (C) 2013-2015 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -470,7 +470,7 @@ solib_aix_get_section_offsets (struct objfile *objfile,
   bfd *abfd = objfile->obfd;
   int i;
 
-  offsets = XCALLOC (objfile->num_sections, struct section_offsets);
+  offsets = XCNEWVEC (struct section_offsets, objfile->num_sections);
 
   /* .text */
 
This page took 0.024155 seconds and 4 git commands to generate.