Skip to content

Commit

Permalink
Allow backups to be an empty list
Browse files Browse the repository at this point in the history
This wasn't allowed previously. It's useful if you want to bring
down a system gracefully.
  • Loading branch information
matthiasl committed Apr 25, 2011
1 parent 52efcc9 commit 48cbb57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erlang/gth_xml_parse.erl
Expand Up @@ -135,7 +135,7 @@ checked(_) ->
update({controller, A, [], _}) ->
[ATimeout, ABackups] = multiple_extract(A, ["timeout", {"backups", none}]),
Backups = case ABackups of
[_|_] ->
List when is_list(List) ->
string:tokens(ABackups, " ");
_ ->
none
Expand Down

0 comments on commit 48cbb57

Please sign in to comment.