* subshell.c (init_subshell_child): Does not g_strdup() constant string

in putenv() calls.
This commit is contained in:
Andrew V. Samoilov 2004-12-08 13:07:53 +00:00
parent 87635b05f3
commit 3fff2ff3c9
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2004-12-08 Pavel Shirshov <me@pavelsh.pp.ru>
* subshell.c (init_subshell_child): Does not g_strdup() constant string
in putenv() calls.
2004-12-03 Roland Illig <roland.illig@gmx.de>
* *.h: Renamed multiple inclusion guards that started with a

View File

@ -230,11 +230,11 @@ init_subshell_child (const char *pty_name)
init_file = ".bashrc";
/* Make MC's special commands not show up in bash's history */
putenv (g_strdup ("HISTCONTROL=ignorespace"));
putenv ("HISTCONTROL=ignorespace");
/* Allow alternative readline settings for MC */
if (access (".mc/inputrc", R_OK) == 0)
putenv (g_strdup ("INPUTRC=.mc/inputrc"));
putenv ("INPUTRC=.mc/inputrc");
break;