summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_basic.erl2
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).