summaryrefslogtreecommitdiffstats
path: root/src/ccapi/common
diff options
context:
space:
mode:
authorAlexandra Ellwood <lxs@mit.edu>2007-10-10 21:20:00 +0000
committerAlexandra Ellwood <lxs@mit.edu>2007-10-10 21:20:00 +0000
commita2367c956c6c9d56c309930f5a70c8017f67727c (patch)
tree7ffebb16482ddae096513e7b35c18ab1e462380a /src/ccapi/common
parenta3fd400857a392bba3cad91e75fbbfbed3372ded (diff)
downloadkrb5-a2367c956c6c9d56c309930f5a70c8017f67727c.tar.gz
krb5-a2367c956c6c9d56c309930f5a70c8017f67727c.tar.xz
krb5-a2367c956c6c9d56c309930f5a70c8017f67727c.zip
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
Diffstat (limited to 'src/ccapi/common')
-rw-r--r--src/ccapi/common/cci_array_internal.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ccapi/common/cci_array_internal.c b/src/ccapi/common/cci_array_internal.c
index 37ff695e3c..d4975ba85f 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) {