summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2021-05-31 19:44:03 -0600
committerKarl Williamson <khw@cpan.org>2021-08-07 14:50:36 -0600
commit5f3093ad82f69ba104cdfe006e4cd5fb0a284dc3 (patch)
treee1bd2f188625942f324d5ca3a8015401c82992f3 /regcomp.c
parente1458615503a7ee9dc3f510d6942741099f96de7 (diff)
downloadperl-5f3093ad82f69ba104cdfe006e4cd5fb0a284dc3.tar.gz
regcomp.c: Initialize a variable
to silence some compilers that were warning
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regcomp.c b/regcomp.c
index f8a0d876c5..4fdc490da5 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -19320,7 +19320,7 @@ S_optimize_regclass(pTHX_
U8 op = END; /* The returned node-type, initialized to an impossible
one. */
- UV value;
+ UV value = 0;
PERL_UINT_FAST8_T i;
UV partial_cp_count = 0;
UV start[MAX_FOLD_FROMS+1] = { 0 }; /* +1 for the folded-to char */