diff options
author | Tony Cook <tony@develop-help.com> | 2011-02-16 10:38:55 +1100 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2011-02-16 10:38:55 +1100 |
commit | 26ecd6782dd578b8e5db8e71a209f1af139f5877 (patch) | |
tree | ea5cbb133919aaee4a16b7ccb0bd864002909766 /regexec.c | |
parent | 5e6b238927a6bd1b080b1a2f0ec23e491575355b (diff) | |
download | perl-26ecd6782dd578b8e5db8e71a209f1af139f5877.tar.gz |
fix C++ builds and make the comment on initializers clearer
Diffstat (limited to 'regexec.c')
-rw-r--r-- | regexec.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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: |