summaryrefslogtreecommitdiff
path: root/env/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'env/common.c')
-rw-r--r--env/common.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/env/common.c b/env/common.c
index 656748c1f5b..ebcb10854d8 100644
--- a/env/common.c
+++ b/env/common.c
@@ -359,6 +359,14 @@ char *env_get_default(const char *name)
return NULL;
}
+/*
+ * Look up the variable from the default environment and store its value in buf
+ */
+int env_get_default_into(const char *name, char *buf, unsigned int len)
+{
+ return env_get_from_linear(default_environment, name, buf, len);
+}
+
void env_set_default(const char *s, int flags)
{
if (s) {