From: Simon Marchi Date: Thu, 25 Jun 2020 21:06:18 +0000 (-0400) Subject: gdb: use make_unique_xstrdup in set_inferior_io_terminal X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=58373b80f3d06740fccefe735fbb390791092027;p=binutils-gdb.git 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 --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d9b6a49bd10..ddb5c47d1e7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2020-06-25 Simon Marchi + + * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup. + 2020-06-25 Simon Marchi * inferior.h (struct inferior) : Change type to diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 48d6a91c0c2..17f7b9abeac 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -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; }