diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2011-09-09 09:35:48 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2011-09-09 09:35:48 +0000 |
commit | 41d771a6026f926ffa918476af5c451ee9cc0c35 (patch) | |
tree | d777406f9fa60b572bd809ed3e2488012df8025e /pcre_jit_compile.c | |
parent | e41ee61018aca8d58a493b08504a8f779a208305 (diff) | |
download | pcre-41d771a6026f926ffa918476af5c451ee9cc0c35.tar.gz |
Tidy up interface from pcre_study() to JIT, and ignore a minimum length of 0.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@688 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_jit_compile.c')
-rw-r--r-- | pcre_jit_compile.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pcre_jit_compile.c b/pcre_jit_compile.c index 7691e50..8b676fa 100644 --- a/pcre_jit_compile.c +++ b/pcre_jit_compile.c @@ -5940,7 +5940,7 @@ fallback_common rootfallback; compiler_common common_data; compiler_common *common = &common_data; const unsigned char *tables = re->tables; -pcre_study_data *study = (extra->flags & PCRE_EXTRA_STUDY_DATA) != 0 ? extra->study_data : NULL; +pcre_study_data *study; uschar *ccend; executable_function *function; void *executable_func; @@ -5952,6 +5952,9 @@ struct sljit_jump *alloc_error; struct sljit_jump *reqbyte_notfound = NULL; struct sljit_jump *empty_match; +SLJIT_ASSERT((extra->flags & PCRE_EXTRA_STUDY_DATA) != 0); +study = extra->study_data; + if (!tables) tables = _pcre_default_tables; |