From b4a1dca74d83f357d020ac74e1a4edd20a0cd754 Mon Sep 17 00:00:00 2001 From: James E Keenan Date: Fri, 13 Dec 2024 11:22:43 -0500 Subject: [PATCH] Avoid uninitialized value warning Initialize UV uv to 0, per recommendation by Karl Williamson in GH #22859. --- utf8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utf8.c b/utf8.c index de2149fc70ad..9857f9ef74d7 100644 --- a/utf8.c +++ b/utf8.c @@ -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 */