]> err.no Git - varnish/commitdiff
An assert to catch silly errors.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 7 Aug 2006 18:33:01 +0000 (18:33 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 7 Aug 2006 18:33:01 +0000 (18:33 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@748 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/varnishd.c

index 260db73ebb158878d69591eff79efa21dc19a066..0bdababc1d5995197e931b7be6e5855836ddd4ff 100644 (file)
@@ -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);