diff options
-rw-r--r-- | src/ccapi/common/cci_array_internal.c | 3 |
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) { |