From: phk Date: Mon, 7 Aug 2006 18:33:01 +0000 (+0000) Subject: An assert to catch silly errors. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4f8c49ed12f363dca1c43322a982eacc4decc50;p=varnish An assert to catch silly errors. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@748 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/varnishd.c b/varnish-cache/bin/varnishd/varnishd.c index 260db73e..0bdababc 100644 --- a/varnish-cache/bin/varnishd/varnishd.c +++ b/varnish-cache/bin/varnishd/varnishd.c @@ -266,6 +266,7 @@ DebugStunt(void) d_child = strtoul(buf, &p, 0); assert(p != NULL); printf("New Pid %d\n", d_child); + assert(d_child != 0); i = strlen(p); j = write(pipes[1][1], p, i); assert(j == i);