Skip to content

Commit

Permalink
keep substituting after miss
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicletz committed Feb 26, 2024
1 parent 4a09cab commit d3252c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erts/etc/common/erlexec.c
Original file line number Diff line number Diff line change
Expand Up @@ -2178,7 +2178,7 @@ substitute_env(char *value, char *pos)
sub = get_env(name);
if (!sub) {
free(name);
return value;
return substitute_env(value, end);
}

new_value = malloc(strlen(value) + strlen(sub) - (end - begin) + 1);
Expand Down

0 comments on commit d3252c2

Please sign in to comment.