diff options
Diffstat (limited to 'gdb/demangle.c')
-rw-r--r-- | gdb/demangle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/demangle.c b/gdb/demangle.c index c0027be..ded4a25 100644 --- a/gdb/demangle.c +++ b/gdb/demangle.c @@ -240,7 +240,7 @@ _initialize_demangler (void) libiberty_demanglers[ndems].demangling_style != unknown_demangling; ndems++) ; - demangling_style_names = xcalloc (ndems + 1, sizeof (char *)); + demangling_style_names = XCNEWVEC (const char *, ndems + 1); for (i = 0; libiberty_demanglers[i].demangling_style != unknown_demangling; i++) |