mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-23 08:23:50 +08:00
Make variable in get_startup_shell non-static
I noticed that a variable in get_startup_shell is "static". However, I couldn't see any reason it ought to be, so this removes the "static". gdb/ChangeLog 2018-09-14 Tom Tromey <tom@tromey.com> * nat/fork-inferior.c (get_startup_shell): Remove "static".
This commit is contained in:
parent
1fcd7e871c
commit
87b240d485
@ -1,3 +1,7 @@
|
||||
2018-09-14 Tom Tromey <tom@tromey.com>
|
||||
|
||||
* nat/fork-inferior.c (get_startup_shell): Remove "static".
|
||||
|
||||
2018-09-13 Tom Tromey <tom@tromey.com>
|
||||
|
||||
* python/py-inferior.c (infpy_thread_from_thread_handle): Now
|
||||
|
@ -272,9 +272,7 @@ execv_argv::init_for_shell (const char *exec_file,
|
||||
static const char *
|
||||
get_startup_shell ()
|
||||
{
|
||||
static const char *ret;
|
||||
|
||||
ret = getenv ("SHELL");
|
||||
const char *ret = getenv ("SHELL");
|
||||
if (ret == NULL)
|
||||
ret = SHELL_FILE;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user