=================================================================== RCS file: /cvs/mandoc/cgi.c,v retrieving revision 1.27 retrieving revision 1.28 diff -u -p -r1.27 -r1.28 --- mandoc/cgi.c 2011/12/10 23:04:31 1.27 +++ mandoc/cgi.c 2011/12/10 23:09:25 1.28 @@ -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; }