aboutsummaryrefslogtreecommitdiff
path: root/src/environment.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/environment.c')
-rw-r--r--src/environment.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/environment.c b/src/environment.c
index 7315281..391807f 100644
--- a/src/environment.c
+++ b/src/environment.c
@@ -284,9 +284,10 @@ char *runtime_expand_var(RuntimeEnv *env, char *input) {
return NULL;
}
- // If there's no environment variables to process return a copy of the input string
+ // If there's no environment variables to process return the input string
if (strchr(input, delim) == NULL) {
- return strdup(input);
+ //return strdup(input);
+ return input;
}
expanded = calloc(OMC_BUFSIZ, sizeof(char));
@@ -417,7 +418,6 @@ void runtime_set(RuntimeEnv *env, const char *_key, char *_value) {
}
guard_free(now)
guard_free(key)
- guard_free(value)
}
/**