Permalink
Browse files

fix object lookup problem in jsonrpc

Fix a matching problem causing lookups to fail in JSON objects used
for JSON-RPC calls.
  • Loading branch information...
1 parent b16f002 commit 5ca422e279c1625f1fbb7e7d0808eedaccb50dfb @vinoski vinoski committed May 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/jsonrpc.erl
View
@@ -38,7 +38,7 @@ s(List, ElemName) when is_list(List) ->
case lists:keysearch(ElemName,1,List) of
{value,{ElemName,Val}} ->
Val;
- ElemName when is_atom(ElemName) ->
+ false when is_atom(ElemName) ->
ElemList = atom_to_list(ElemName),
case lists:keysearch(ElemList,1,List) of
{value,{ElemList,Val}} ->

0 comments on commit 5ca422e

Please sign in to comment.