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 | cc4b3ef71949e848d48ee5b833a0c38b21d91a99 (patch) | |
tree | 7afa4fd4fe9d67ec874be014aa652222260c845d | |
parent | f5050a7a94fe2713e123c515c13900a73dbee9c1 (diff) | |
download | mandoc-cc4b3ef71949e848d48ee5b833a0c38b21d91a99.tar.gz mandoc-cc4b3ef71949e848d48ee5b833a0c38b21d91a99.tar.zst mandoc-cc4b3ef71949e848d48ee5b833a0c38b21d91a99.zip |
Slip in a fix to allow for empty cache directories.
-rw-r--r-- | cgi.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |