summaryrefslogtreecommitdiffstats
path: root/cgi.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-12-10 23:09:25 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-12-10 23:09:25 +0000
commit9adea0260ec84d86617b6fe4b9f5c9cf0ab0cd6a (patch)
tree4c32e28a5ae5ae2767735090af0360bd8a40ac32 /cgi.c
parentc0b6cc0577d033ecf5c1e2359079dff868b8dbb7 (diff)
downloadmandoc-9adea0260ec84d86617b6fe4b9f5c9cf0ab0cd6a.tar.gz
Slip in a fix to allow for empty cache directories.
Diffstat (limited to 'cgi.c')
-rw-r--r--cgi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgi.c b/cgi.c
index 609183ed..3d448a16 100644
--- a/cgi.c
+++ b/cgi.c
@@ -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;
}