From c3f45ae6dda4591351a1182c630f5564a9b2f285 Mon Sep 17 00:00:00 2001 From: Jan Kneschke Date: Wed, 2 Nov 2005 12:38:53 +0000 Subject: fixed check for tempdirs git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@815 152afb58-edef-0310-8abb-c4023f1b3aa9 --- src/chunk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chunk.c b/src/chunk.c index 82b0ebd1..3903428a 100644 --- a/src/chunk.c +++ b/src/chunk.c @@ -269,7 +269,7 @@ chunk *chunkqueue_get_append_tempfile(chunkqueue *cq) { c->type = FILE_CHUNK; c->offset = 0; - if (cq->tempdirs) { + if (cq->tempdirs && cq->tempdirs->used) { size_t i; /* we have several tempdirs, only if all of them fail we jump out */ -- cgit v1.2.1