From cc4b3ef71949e848d48ee5b833a0c38b21d91a99 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sat, 10 Dec 2011 23:09:25 +0000 Subject: Slip in a fix to allow for empty cache directories. --- cgi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cgi.c') diff --git a/cgi.c b/cgi.c index adc34929..da6c3e4e 100644 --- a/cgi.c +++ b/cgi.c @@ -1,4 +1,4 @@ -/* $Id: cgi.c,v 1.27 2011/12/10 23:04:31 kristaps Exp $ */ +/* $Id: cgi.c,v 1.28 2011/12/10 23:09:25 kristaps Exp $ */ /* * Copyright (c) 2011 Kristaps Dzonsons * @@ -853,7 +853,7 @@ pg_search(const struct req *req, char *path) struct opts opt; struct expr *expr; - if (req->q.manroot < 0) { + if (req->q.manroot < 0 || 0 == req->psz) { resp_search(NULL, 0, (void *)req); return; } -- cgit v1.2.3-56-ge451