Skip to content

Commit 9569279

Browse files
committed
Fix previous commit
1 parent e6d35b8 commit 9569279

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/yconf.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ to_atom(B) when is_binary(B) ->
991991
try binary_to_atom(B, latin1)
992992
catch _:system_limit -> fail({bad_length, 255})
993993
end;
994-
to_atom(L) when is_list(L) ->
994+
to_atom([_|Rest] = L) when is_list(Rest) ->
995995
try list_to_atom(L)
996996
catch _:system_limit -> fail({bad_length, 255})
997997
end;

0 commit comments

Comments
 (0)