diff options
author | Matthias Radestock <matthias@lshift.net> | 2009-07-01 13:23:26 +0100 |
---|---|---|
committer | Matthias Radestock <matthias@lshift.net> | 2009-07-01 13:23:26 +0100 |
commit | f677e7a04608fac21fb25f4b83446579cbf36372 (patch) | |
tree | 46bfe4c941c350da3ed513765e49071eb0afce72 | |
parent | 127b4416974f7dc50f4466bc6c0a1560dbadc9f9 (diff) | |
download | rabbitmq-server-f677e7a04608fac21fb25f4b83446579cbf36372.tar.gz |
fix another off-by-one error
-rw-r--r-- | src/rabbit_basic.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_basic.erl b/src/rabbit_basic.erl index 7184caba..4b8a388f 100644 --- a/src/rabbit_basic.erl +++ b/src/rabbit_basic.erl @@ -93,7 +93,7 @@ properties(P) when is_list(P) -> lists:foldl(fun ({Key, Value}, Acc) -> case indexof(record_info(fields, 'P_basic'), Key) of 0 -> throw({unknown_P_basic_property_name, Key}); - N -> setelement(N, Acc, Value) + N -> setelement(N + 1, Acc, Value) end end, #'P_basic'{}, P). |