From: phk Date: Fri, 11 Aug 2006 14:26:59 +0000 (+0000) Subject: Assert regexp != NULL X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9cd214fc4cdc7eb0dfc685dc7418a5f257c2c790;p=varnish Assert regexp != NULL git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@815 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_vrt_re.c b/varnish-cache/bin/varnishd/cache_vrt_re.c index 1a2c5ea2..9c99700d 100644 --- a/varnish-cache/bin/varnishd/cache_vrt_re.c +++ b/varnish-cache/bin/varnishd/cache_vrt_re.c @@ -45,6 +45,7 @@ VRT_re_match(const char *s, void *re) if (s == NULL) return (0); + assert(re != NULL); t = re; i = regexec(t, s, 0, NULL, 0); if (i == 0)