Explorar el Código

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

firest hace 1 año
padre
commit
d9b5c5863b
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      apps/emqx/src/emqx_schema.erl

+ 2 - 0
apps/emqx/src/emqx_schema.erl

@@ -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) ->