summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorJames E Keenan <jkeenan@cpan.org>2021-01-10 01:51:15 +0000
committerKarl Williamson <khw@cpan.org>2021-01-10 07:10:34 -0700
commit53deed8922394340ce196a8092ba2ecdd30fc1bc (patch)
tree8f64950a18f27176b31730e4814969f4960f8c59 /regexec.c
parent294f60cbf8e3f2ff407c4e11c89b51678d415a47 (diff)
downloadperl-53deed8922394340ce196a8092ba2ecdd30fc1bc.tar.gz
Correct for build-time warning
Addresses this build-time warning: suggest braces around initialization of subobject [-Wmissing-braces]
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regexec.c b/regexec.c
index b46693e5ac..cab82cf514 100644
--- a/regexec.c
+++ b/regexec.c
@@ -4527,7 +4527,7 @@ S_setup_EXACTISH_ST(pTHX_ const regnode * const text_node,
/* Here and below, '15' is the value of UTF8_MAXBYTES_CASE, which requires at least :e
*/
- U8 matches[MAX_MATCHES][UTF8_MAXBYTES_CASE + 1] = { 0 };
+ U8 matches[MAX_MATCHES][UTF8_MAXBYTES_CASE + 1] = { { 0 } };
U8 lengths[MAX_MATCHES] = { 0 };
U8 index_of_longest = 0;