From: Alexandra Ellwood Date: Wed, 10 Oct 2007 21:20:00 +0000 (+0000) Subject: cci_array_move not returning correct new position X-Git-Tag: krb5-1.7-alpha1~807 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a2367c956c6c9d56c309930f5a70c8017f67727c;p=krb5.git 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 --- 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) {