Fix jit_callback check in JIT.

This commit is contained in:
Zoltán Herczeg 2014-11-30 10:01:49 +00:00
parent a99e048b4f
commit d788c58e6b
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ if (oveccount > max_oveccount)
oveccount = max_oveccount;
arguments.oveccount = oveccount << 1;
if (mcontext->jit_callback != NULL)
if (mcontext && mcontext->jit_callback != NULL)
jit_stack = mcontext->jit_callback(mcontext->jit_callback_data);
else
jit_stack = (pcre2_jit_stack *)mcontext->jit_callback_data;