gdb: use make_unique_xstrdup in set_inferior_io_terminal
gdb/ChangeLog: * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup. Change-Id: I38b6e753f58947531fe4a293d574bc27ec128f47
This commit is contained in:
parent
277474eea0
commit
58373b80f3
@ -1,3 +1,7 @@
|
||||
2020-06-25 Simon Marchi <simon.marchi@efficios.com>
|
||||
|
||||
* infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
|
||||
|
||||
2020-06-25 Simon Marchi <simon.marchi@efficios.com>
|
||||
|
||||
* inferior.h (struct inferior) <terminal>: Change type to
|
||||
|
@ -109,7 +109,7 @@ void
|
||||
set_inferior_io_terminal (const char *terminal_name)
|
||||
{
|
||||
if (terminal_name != NULL && *terminal_name != '\0')
|
||||
current_inferior ()->terminal.reset (xstrdup (terminal_name));
|
||||
current_inferior ()->terminal = make_unique_xstrdup (terminal_name);
|
||||
else
|
||||
current_inferior ()->terminal = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user