Skip to content

Commit

Permalink
Merge pull request #6 from srstrong/master
Browse files Browse the repository at this point in the history
gproc:get_env did not appear to work correctly for os_env
  • Loading branch information
uwiger committed Sep 30, 2011
2 parents 7c07d43 + b0fbab7 commit 983a736
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gproc.erl
Expand Up @@ -475,12 +475,12 @@ try_alternative(app_env, App, Key, _Scope) ->
end;
try_alternative(os_env, _App, Key, _) ->
case os:getenv(os_env_key(Key)) of
"" -> undefined;
false -> undefined;
Val -> {ok, Val}
end;
try_alternative({os_env, Key}, _, _, _) ->
case os:getenv(Key) of
"" -> undefined;
false -> undefined;
Val -> {ok, Val}
end;
try_alternative(init_arg, _, Key, _) ->
Expand Down

0 comments on commit 983a736

Please sign in to comment.