mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
Replace uses of concat with xstrdup
I noticed a couple of spots using concat that could use xstrdup instead. This patch fixes these. gdb/ChangeLog 2019-06-16 Tom Tromey <tom@tromey.com> * coffread.c (process_coff_symbol): Use xstrdup. * value.c (create_internalvar): Use xstrdup.
This commit is contained in:
@ -2025,7 +2025,7 @@ create_internalvar (const char *name)
|
||||
{
|
||||
struct internalvar *var = XNEW (struct internalvar);
|
||||
|
||||
var->name = concat (name, (char *)NULL);
|
||||
var->name = xstrdup (name);
|
||||
var->kind = INTERNALVAR_VOID;
|
||||
var->next = internalvars;
|
||||
internalvars = var;
|
||||
|
Reference in New Issue
Block a user