--- pcre_compile.c.orig	2015/06/22 09:38:41	1570
+++ pcre_compile.c	2015/06/23 16:34:53	1571
@@ -9449,7 +9449,7 @@
 exceptional ones forgo this. We scan the pattern to check that they are fixed
 length, and set their lengths. */
 
-if (cd->check_lookbehind)
+if (errorcode == 0 && cd->check_lookbehind)
   {
   pcre_uchar *cc = (pcre_uchar *)codestart;
 
