Skip to content

Commit

Permalink
Initialize UV uv to 0
Browse files Browse the repository at this point in the history
Per recommendation by Karl Williamson in GH-22859.
  • Loading branch information
jkeenan committed Dec 19, 2024
1 parent 4d1f578 commit 0b33a25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utf8.c
Original file line number Diff line number Diff line change
Expand Up @@ -1637,7 +1637,7 @@ Perl_utf8_to_uv_msgs_helper_(const U8 * const s0,
SSize_t curlen = send - s0;
U32 possible_problems; /* A bit is set here for each potential problem
found as we go along */
UV uv = UV_MAX;
UV uv = 0;
SSize_t expectlen; /* How long should this sequence be? */
SSize_t avail_len; /* When input is too short, gives what that is */

Expand Down

0 comments on commit 0b33a25

Please sign in to comment.