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 | ce40f4fce04ca0fc9482d483981a11b682d50f85 (patch) | |
| tree | 46bfe4c941c350da3ed513765e49071eb0afce72 | |
| parent | 092af4767e05b179ae7e00e27471c2289b79fb00 (diff) | |
| download | rabbitmq-server-git-ce40f4fce04ca0fc9482d483981a11b682d50f85.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 7184caba29..4b8a388f41 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). |
