From e8c4493943d0eed22f72074516cbe185c6069f80 Mon Sep 17 00:00:00 2001 From: Eric Date: Sat, 9 Feb 2013 11:06:02 -0800 Subject: bugfix for empty configs in the Erlang API --- src/rcl_prv_config.erl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/rcl_prv_config.erl') diff --git a/src/rcl_prv_config.erl b/src/rcl_prv_config.erl index 1027edf..4d1c119 100644 --- a/src/rcl_prv_config.erl +++ b/src/rcl_prv_config.erl @@ -46,6 +46,8 @@ init(State) -> -spec do(rcl_state:t()) ->{ok, rcl_state:t()} | relcool:error(). do(State) -> case rcl_state:config_file(State) of + [] -> + search_for_dominating_config(State); undefined -> search_for_dominating_config(State); ConfigFile when erlang:is_list(ConfigFile) -> -- cgit v1.2.3