From 26ecd6782dd578b8e5db8e71a209f1af139f5877 Mon Sep 17 00:00:00 2001 From: Tony Cook Date: Wed, 16 Feb 2011 10:38:55 +1100 Subject: [PATCH] fix C++ builds and make the comment on initializers clearer --- regexec.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/regexec.c b/regexec.c index 8d3ec68..93de2cf 100644 --- a/regexec.c +++ b/regexec.c @@ -4039,17 +4039,19 @@ S_regmatch(pTHX_ regmatch_info *reginfo, regnode *prog) named buffers just convert to the equivalent numbered and pretend they were called as the corresponding numbered buffer op. */ - /* don't initialize these, it makes C++ unhappy */ + /* don't initialize these in the declaration, it makes C++ + unhappy */ char *s; char type; re_fold_t folder; const U8 *fold_array; - UV utf8_fold_flags = 0; + UV utf8_fold_flags; PL_reg_flags |= RF_tainted; folder = foldEQ_locale; fold_array = PL_fold_locale; type = REFFL; + utf8_fold_flags = 0; goto do_nref; case NREFFA: -- 2.7.4