Skip to content

Commit

Permalink
Avoid uninitialized value warning
Browse files Browse the repository at this point in the history
Initialize UV uv to 0, per recommendation by Karl Williamson in
GH #22859.
  • Loading branch information
jkeenan committed Dec 19, 2024
1 parent 7496ff1 commit 005b478
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 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 005b478

Please sign in to comment.