Skip to content

Commit

Permalink
Avoid uninitialized value warning
Browse files Browse the repository at this point in the history
Using same trick as in S_scan_const() in toke.c
  • Loading branch information
jkeenan committed Dec 13, 2024
1 parent c38b052 commit fd850aa
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 @@ -1600,7 +1600,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 = UV_MAX;
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 fd850aa

Please sign in to comment.