fix: do not convert a empty file name to a empty list

This commit is contained in:
firest 2024-07-11 18:12:38 +08:00
parent c9e12f30cd
commit d9b5c5863b
1 changed files with 2 additions and 0 deletions

View File

@ -3355,6 +3355,8 @@ default_listener(SSLListener) ->
%% otherwise always return string. %% otherwise always return string.
naive_env_interpolation(undefined) -> naive_env_interpolation(undefined) ->
undefined; undefined;
naive_env_interpolation(<<>>) ->
<<>>;
naive_env_interpolation(Bin) when is_binary(Bin) -> naive_env_interpolation(Bin) when is_binary(Bin) ->
naive_env_interpolation(unicode:characters_to_list(Bin, utf8)); naive_env_interpolation(unicode:characters_to_list(Bin, utf8));
naive_env_interpolation("$" ++ Maybe = Original) -> naive_env_interpolation("$" ++ Maybe = Original) ->