From a2367c956c6c9d56c309930f5a70c8017f67727c Mon Sep 17 00:00:00 2001 From: Alexandra Ellwood Date: Wed, 10 Oct 2007 21:20:00 +0000 Subject: [PATCH] cci_array_move not returning correct new position cci_array_move should return correct new position when moving from and to the same spot. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20115 dc483132-0cff-0310-8789-dd5450dbe970 --- src/ccapi/common/cci_array_internal.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ccapi/common/cci_array_internal.c b/src/ccapi/common/cci_array_internal.c index 37ff695e3..d4975ba85 100644 --- a/src/ccapi/common/cci_array_internal.c +++ b/src/ccapi/common/cci_array_internal.c @@ -277,6 +277,9 @@ cc_int32 cci_array_move (cci_array_t io_array, move_to = in_new_position + 1; move_count = in_position - in_new_position; real_new_position = in_new_position; + + } else { + real_new_position = in_new_position; } if (move_count > 0) { -- 2.26.2