Skip to content

Commit

Permalink
ICU-22777 Fix incorrect pointer comparision
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankYFTang committed May 31, 2024
1 parent edfe255 commit 3235c38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion icu4c/source/common/ubiditransform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ ubiditransform_transform(UBiDiTransform *pBiDiTransform,
/* Checking for U_SUCCESS() within the loop to bail out on first failure. */
for (action = pBiDiTransform->pActiveScheme->actions; *action && U_SUCCESS(*pErrorCode); action++) {
if ((*action)(pBiDiTransform, pErrorCode)) {
if (action + 1) {
if (action[1] != nullptr) {
updateSrc(pBiDiTransform, pBiDiTransform->dest, *pBiDiTransform->pDestLength,
*pBiDiTransform->pDestLength, pErrorCode);
}
Expand Down

0 comments on commit 3235c38

Please sign in to comment.