aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/main.c b/main.c
index dafa15cf..9df5869f 100644
--- a/main.c
+++ b/main.c
@@ -971,12 +971,12 @@ init_vars()
register_deferred_variable("ENVIRON", load_environ);
}
-/* load_environ --- populate the ENVIRON array */
+/* path_environ --- put path variable into environment if not already there */
static void
path_environ(const char *pname, const char *dflt)
{
- char *val;
+ const char *val;
NODE **aptr;
NODE *tmp;
@@ -996,6 +996,8 @@ path_environ(const char *pname, const char *dflt)
unref(tmp);
}
+/* load_environ --- populate the ENVIRON array */
+
static NODE *
load_environ()
{