From 9cd214fc4cdc7eb0dfc685dc7418a5f257c2c790 Mon Sep 17 00:00:00 2001 From: phk Date: Fri, 11 Aug 2006 14:26:59 +0000 Subject: [PATCH] Assert regexp != NULL git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@815 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_vrt_re.c | 1 + 1 file changed, 1 insertion(+) 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) -- 2.39.5