aboutsummaryrefslogtreecommitdiffstatshomepage
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
commitcc4b3ef71949e848d48ee5b833a0c38b21d91a99 (patch)
tree7afa4fd4fe9d67ec874be014aa652222260c845d /cgi.c
parentf5050a7a94fe2713e123c515c13900a73dbee9c1 (diff)
downloadmandoc-cc4b3ef71949e848d48ee5b833a0c38b21d91a99.tar.gz
mandoc-cc4b3ef71949e848d48ee5b833a0c38b21d91a99.tar.zst
mandoc-cc4b3ef71949e848d48ee5b833a0c38b21d91a99.zip
Slip in a fix to allow for empty cache directories.
Diffstat (limited to 'cgi.c')
-rw-r--r--cgi.c4
1 files changed, 2 insertions, 2 deletions
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 <kristaps@bsd.lv>
*
@@ -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;
}