From 10d5eafdb9a6f371375237a35b51770ccb148004 Mon Sep 17 00:00:00 2001 From: des Date: Sun, 17 Feb 2008 10:02:07 +0000 Subject: [PATCH] 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 --- varnish-cache/bin/varnishreplay/varnishreplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5