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:
Tom Tromey 2018-09-13 16:33:27 -06:00
parent 1fcd7e871c
commit 87b240d485
2 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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;