Permalink
Browse files

Updated os_env to match undefined environment variables correctly

  • Loading branch information...
1 parent 7c07d43 commit b0fbab7cd7df04412d5f648877212761be42040f @srstrong srstrong committed Sep 26, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gproc.erl
View
4 src/gproc.erl
@@ -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, _) ->

0 comments on commit b0fbab7

Please sign in to comment.