aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-06-16 10:00:52 -0600
committerTom Tromey <tom@tromey.com>2019-06-16 10:00:52 -0600
commit395f9c911460b3e868c0b700e831c7f92746fad7 (patch)
tree79b66e95f3a7c308b32721a3a73ab317050b39c7 /gdb/value.c
parentcafb34387d063fa47bc2cdb33fc3fe2f13e6cec0 (diff)
downloadgdb-395f9c911460b3e868c0b700e831c7f92746fad7.zip
gdb-395f9c911460b3e868c0b700e831c7f92746fad7.tar.gz
gdb-395f9c911460b3e868c0b700e831c7f92746fad7.tar.bz2
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.
Diffstat (limited to 'gdb/value.c')
-rw-r--r--gdb/value.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/value.c b/gdb/value.c
index 71030ef..1b22cf9 100644
--- a/gdb/value.c
+++ b/gdb/value.c
@@ -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;