r831 - trunk/varnish-cache/bin/varnishlog

phk at projects.linpro.no phk at projects.linpro.no
Fri Aug 18 21:10:44 CEST 2006


Author: phk
Date: 2006-08-18 21:10:44 +0200 (Fri, 18 Aug 2006)
New Revision: 831

Modified:
   trunk/varnish-cache/bin/varnishlog/varnishlog.c
Log:
Set REG_NOSUB for speed


Modified: trunk/varnish-cache/bin/varnishlog/varnishlog.c
===================================================================
--- trunk/varnish-cache/bin/varnishlog/varnishlog.c	2006-08-18 18:16:53 UTC (rev 830)
+++ trunk/varnish-cache/bin/varnishlog/varnishlog.c	2006-08-18 19:10:44 UTC (rev 831)
@@ -138,7 +138,7 @@
 			fprintf(stderr, "Tag \"%s\" unknown\n", argv[0]);
 			exit (2);
 		}
-		i = regcomp(&match_re, argv[1], REG_EXTENDED);
+		i = regcomp(&match_re, argv[1], REG_EXTENDED | REG_NOSUB);
 		if (i) {
 			char buf[BUFSIZ];
 			regerror(i, &match_re, buf, sizeof buf);




More information about the varnish-commit mailing list