diff options
author | Tom Tromey <tom@tromey.com> | 2019-06-16 10:00:52 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-06-16 10:00:52 -0600 |
commit | 395f9c911460b3e868c0b700e831c7f92746fad7 (patch) | |
tree | 79b66e95f3a7c308b32721a3a73ab317050b39c7 /gdb/coffread.c | |
parent | cafb34387d063fa47bc2cdb33fc3fe2f13e6cec0 (diff) | |
download | gdb-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/coffread.c')
-rw-r--r-- | gdb/coffread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/coffread.c b/gdb/coffread.c index 8b31200..0c7c4b5 100644 --- a/gdb/coffread.c +++ b/gdb/coffread.c @@ -1728,7 +1728,7 @@ process_coff_symbol (struct coff_symbol *cs, && *SYMBOL_LINKAGE_NAME (sym) != '~' && *SYMBOL_LINKAGE_NAME (sym) != '.') TYPE_NAME (SYMBOL_TYPE (sym)) = - concat (SYMBOL_LINKAGE_NAME (sym), (char *)NULL); + xstrdup (SYMBOL_LINKAGE_NAME (sym)); add_symbol_to_list (sym, get_file_symbols ()); break; |