]> err.no Git - varnish/commitdiff
Add an assert to make sure 32 stays 32
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 2 Mar 2009 10:43:56 +0000 (10:43 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 2 Mar 2009 10:43:56 +0000 (10:43 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3848 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_hash.c

index 73b252ebf87541cc5ba5b2bcb1008600e0a80f21..5fce8464d1c4bbaaf98785b9976cbd41699190cc 100644 (file)
@@ -572,6 +572,7 @@ void
 HSH_Init(void)
 {
 
+       assert(DIGEST_LEN == SHA256_LEN);       /* avoid #include pollution */
        save_hash = params->save_hash;
        hash = heritage.hash;
        if (hash->start != NULL)