From fada0caa442c433a133735c79fd697f52696b705 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Mon, 7 Jul 2025 17:39:17 -0400 Subject: Return a copy of the input, not the input pointer --- src/lib/core/environment.c | 3 +-- 1 file changed, 1 insertion(+), 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)); -- cgit