From: des Date: Thu, 15 Nov 2007 16:02:05 +0000 (+0000) Subject: Change the assert() that triggers in #167 to spassert(). X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18b074fc2aca1c4c1fcf4536a58fd0a8ae061e8f;p=varnish Change the assert() that triggers in #167 to spassert(). git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2255 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_response.c b/varnish-cache/bin/varnishd/cache_response.c index 8ab46437..84ec31ff 100644 --- a/varnish-cache/bin/varnishd/cache_response.c +++ b/varnish-cache/bin/varnishd/cache_response.c @@ -191,7 +191,7 @@ RES_WriteObj(struct sess *sp) VSL_stats->n_objwrite++; WRK_Write(sp->wrk, st->ptr, st->len); } - assert(u == sp->obj->len); + spassert(u == sp->obj->len); if (sp->esis > 0) WRK_Write(sp->wrk, "\r\n", -1); }