diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-12-10 23:09:25 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-12-10 23:09:25 +0000 |
commit | 9adea0260ec84d86617b6fe4b9f5c9cf0ab0cd6a (patch) | |
tree | 4c32e28a5ae5ae2767735090af0360bd8a40ac32 /cgi.c | |
parent | c0b6cc0577d033ecf5c1e2359079dff868b8dbb7 (diff) | |
download | mandoc-9adea0260ec84d86617b6fe4b9f5c9cf0ab0cd6a.tar.gz |
Slip in a fix to allow for empty cache directories.
Diffstat (limited to 'cgi.c')
-rw-r--r-- | cgi.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |