summaryrefslogtreecommitdiff
path: root/pcre_jit_compile.c
diff options
context:
space:
mode:
Diffstat (limited to 'pcre_jit_compile.c')
-rw-r--r--pcre_jit_compile.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pcre_jit_compile.c b/pcre_jit_compile.c
index a94ab61..7691e50 100644
--- a/pcre_jit_compile.c
+++ b/pcre_jit_compile.c
@@ -6388,7 +6388,9 @@ PCRE_EXP_DECL void
pcre_assign_jit_stack(pcre_extra *extra, pcre_jit_callback callback, void *userdata)
{
executable_function *function;
-if ((extra->flags & PCRE_EXTRA_EXECUTABLE_JIT) != 0 && extra->executable_jit != NULL)
+if (extra != NULL &&
+ (extra->flags & PCRE_EXTRA_EXECUTABLE_JIT) != 0 &&
+ extra->executable_jit != NULL)
{
function = (executable_function*)extra->executable_jit;
function->callback = callback;