]> err.no Git - varnish/commitdiff
Assert regexp != NULL
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 11 Aug 2006 14:26:59 +0000 (14:26 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 11 Aug 2006 14:26:59 +0000 (14:26 +0000)
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

index 1a2c5ea2a395ca1c83851a6d861269bab8790dff..9c99700daf721280c7fe42e18eefe5906738b20f 100644 (file)
@@ -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)