fix: do not convert a empty file name to a empty list
This commit is contained in:
parent
c9e12f30cd
commit
d9b5c5863b
|
@ -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) ->
|
||||||
|
|
Loading…
Reference in New Issue