From: des Date: Sun, 17 Feb 2008 10:02:07 +0000 (+0000) Subject: Fix assert in thread_close() for fd == nthreads == 0. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10d5eafdb9a6f371375237a35b51770ccb148004;p=varnish Fix assert in thread_close() for fd == nthreads == 0. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2500 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishreplay/varnishreplay.c b/varnish-cache/bin/varnishreplay/varnishreplay.c index a7ec74c4..204709bc 100644 --- a/varnish-cache/bin/varnishreplay/varnishreplay.c +++ b/varnish-cache/bin/varnishreplay/varnishreplay.c @@ -196,7 +196,7 @@ static void thread_close(int fd) { - assert(fd < nthreads); + assert(fd == 0 || fd < nthreads); if (fd == 0) { for (fd = 1; fd < nthreads; ++fd) thread_close(fd);