From 3fff2ff3c94ee5e785ac335dd7ab21ba8290988e Mon Sep 17 00:00:00 2001 From: "Andrew V. Samoilov" Date: Wed, 8 Dec 2004 13:07:53 +0000 Subject: [PATCH] * subshell.c (init_subshell_child): Does not g_strdup() constant string in putenv() calls. --- src/ChangeLog | 5 +++++ src/subshell.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index b37559c2f..2dcbd0933 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2004-12-08 Pavel Shirshov + + * subshell.c (init_subshell_child): Does not g_strdup() constant string + in putenv() calls. + 2004-12-03 Roland Illig * *.h: Renamed multiple inclusion guards that started with a diff --git a/src/subshell.c b/src/subshell.c index 88c016615..fe5e7ef6d 100644 --- a/src/subshell.c +++ b/src/subshell.c @@ -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;