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:
Tom Tromey
2019-06-16 10:00:52 -06:00
parent cafb34387d
commit 395f9c9114
3 changed files with 7 additions and 2 deletions

View File

@ -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;