svn commit: r232220 - user/gabor/tre-integration/contrib/tre/lib

Gabor Kovesdan gabor at FreeBSD.org
Mon Feb 27 16:10:45 UTC 2012


Author: gabor
Date: Mon Feb 27 16:10:44 2012
New Revision: 232220
URL: http://svn.freebsd.org/changeset/base/232220

Log:
  - Use fast matcher when possible (add missing return)

Modified:
  user/gabor/tre-integration/contrib/tre/lib/regexec.c

Modified: user/gabor/tre-integration/contrib/tre/lib/regexec.c
==============================================================================
--- user/gabor/tre-integration/contrib/tre/lib/regexec.c	Mon Feb 27 16:10:26 2012	(r232219)
+++ user/gabor/tre-integration/contrib/tre/lib/regexec.c	Mon Feb 27 16:10:44 2012	(r232220)
@@ -167,8 +167,8 @@ tre_match(const regex_t *preg, const voi
   heur_t *heur = preg->heur;
 
   if ((shortcut != NULL) && (type != STR_USER))
-    tre_match_fast(shortcut, string, len, type, nmatch,
-      pmatch, eflags);
+    return tre_match_fast(shortcut, string, len, type, nmatch,
+			  pmatch, eflags);
   else if ((heur != NULL) && (type != STR_USER))
     return tre_match_heur(tnfa, heur, string, len, type, nmatch,
 			  pmatch, eflags);


More information about the svn-src-user mailing list