Skip to content

Instantly share code, notes, and snippets.

@mattn
Created August 17, 2013 13:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattn/6256782 to your computer and use it in GitHub Desktop.
Save mattn/6256782 to your computer and use it in GitHub Desktop.
diff -r ae6c19fb32e1 src/regexp_nfa.c
--- a/src/regexp_nfa.c Wed Aug 14 17:45:29 2013 +0200
+++ b/src/regexp_nfa.c Sat Aug 17 22:12:07 2013 +0900
@@ -5091,6 +5091,10 @@
#endif
nfa_match = FALSE;
+ fast_breakcheck();
+ if (got_int)
+ return FALSE;
+
/* Allocate memory for the lists of nodes. */
size = (nstate + 1) * sizeof(nfa_thread_T);
list[0].t = (nfa_thread_T *)lalloc(size, TRUE);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment