diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2025-07-07 17:39:17 -0400 |
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2025-07-07 17:39:17 -0400 |
| commit | fada0caa442c433a133735c79fd697f52696b705 (patch) | |
| tree | e4d0601aee508158662aa4d608700c47ba61f5e4 /src | |
| parent | de3e615c1971d844b8ab0c44332fa18466dca150 (diff) | |
| download | stasis-fada0caa442c433a133735c79fd697f52696b705.tar.gz | |
Return a copy of the input, not the input pointer
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/core/environment.c | 3 |
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)); |
