summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorSteve Hay <SteveHay@planit.com>2008-02-25 17:42:38 +0000
committerSteve Hay <SteveHay@planit.com>2008-02-25 17:42:38 +0000
commit0934c9d92d03b9af0e4cebeaa0942ad89e7cc04b (patch)
tree00d50ab3dd5df478121b7a73bff04b637f3506c1 /regcomp.c
parentc427f4d2d4575fbc8a5190932fe321136c7597b3 (diff)
downloadperl-0934c9d92d03b9af0e4cebeaa0942ad89e7cc04b.tar.gz
Silence Borland compiler warnings (except for warnings from zlib) here:
http://www.nntp.perl.org/group/perl.daily-build.reports/2008/02/msg53937.html p4raw-id: //depot/perl@33370
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/regcomp.c b/regcomp.c
index 5c0563542d..05b54ee012 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -4417,7 +4417,10 @@ reStudy:
Zero(r->substrs, 1, struct reg_substr_data);
#ifdef TRIE_STUDY_OPT
- if ( restudied ) {
+ if (!restudied) {
+ StructCopy(&zero_scan_data, &data, scan_data_t);
+ copyRExC_state = RExC_state;
+ } else {
U32 seen=RExC_seen;
DEBUG_OPTIMISE_r(PerlIO_printf(Perl_debug_log,"Restudying\n"));
@@ -4432,9 +4435,6 @@ reStudy:
SvREFCNT_dec(data.last_found);
}
StructCopy(&zero_scan_data, &data, scan_data_t);
- } else {
- StructCopy(&zero_scan_data, &data, scan_data_t);
- copyRExC_state = RExC_state;
}
#else
StructCopy(&zero_scan_data, &data, scan_data_t);