Skip to content

Commit b4a1dca

Browse files
committed
Avoid uninitialized value warning
Initialize UV uv to 0, per recommendation by Karl Williamson in GH #22859.
1 parent 7496ff1 commit b4a1dca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utf8.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1637,7 +1637,7 @@ Perl_utf8_to_uv_msgs_helper_(const U8 * const s0,
16371637
SSize_t curlen = send - s0;
16381638
U32 possible_problems; /* A bit is set here for each potential problem
16391639
found as we go along */
1640-
UV uv;
1640+
UV uv = 0;
16411641
SSize_t expectlen; /* How long should this sequence be? */
16421642
SSize_t avail_len; /* When input is too short, gives what that is */
16431643

0 commit comments

Comments
 (0)