r815 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Fri Aug 11 16:26:59 CEST 2006


Author: phk
Date: 2006-08-11 16:26:59 +0200 (Fri, 11 Aug 2006)
New Revision: 815

Modified:
   trunk/varnish-cache/bin/varnishd/cache_vrt_re.c
Log:
Assert regexp != NULL


Modified: trunk/varnish-cache/bin/varnishd/cache_vrt_re.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_vrt_re.c	2006-08-11 14:21:55 UTC (rev 814)
+++ trunk/varnish-cache/bin/varnishd/cache_vrt_re.c	2006-08-11 14:26:59 UTC (rev 815)
@@ -45,6 +45,7 @@
 
 	if (s == NULL)
 		return (0);
+	assert(re != NULL);
 	t = re;
 	i = regexec(t, s, 0, NULL, 0);
 	if (i == 0)




More information about the varnish-commit mailing list