Permalink
Browse files

Updated os_env to match undefined environment variables correctly

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

Please sign in to comment.