aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2025-07-07 17:39:17 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2025-07-07 17:39:17 -0400
commitfada0caa442c433a133735c79fd697f52696b705 (patch)
treee4d0601aee508158662aa4d608700c47ba61f5e4 /src/lib
parentde3e615c1971d844b8ab0c44332fa18466dca150 (diff)
downloadstasis-fada0caa442c433a133735c79fd697f52696b705.tar.gz
Return a copy of the input, not the input pointer
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/core/environment.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/core/environment.c b/src/lib/core/environment.c
index 057d89e..79dd559 100644
--- a/src/lib/core/environment.c
+++ b/src/lib/core/environment.c
@@ -291,8 +291,7 @@ char *runtime_expand_var(RuntimeEnv *env, char *input) {
// If there's no environment variables to process return the input string
if (strchr(input, delim) == NULL) {
- //return strdup(input);
- return input;
+ return strdup(input);
}
expanded = calloc(STASIS_BUFSIZ, sizeof(char));