Skip to content

Commit

Permalink
remaining_count is marked NULLOK in embed.fnc, so always check it
Browse files Browse the repository at this point in the history
Coverity detected the inconsistent NULL checks.

CID 338543
  • Loading branch information
tonycoz committed Aug 31, 2021
1 parent a9a1cd1 commit acbcccb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion utf8.c
Expand Up @@ -3237,7 +3237,9 @@ S_to_case_cp_list(pTHX_ const UV original,
* should be given. */
}

*remaining_count = 0;
if (remaining_count) {
*remaining_count = 0;
}
return original;
}

Expand Down

0 comments on commit acbcccb

Please sign in to comment.