summaryrefslogtreecommitdiffstats
path: root/cgi.c
diff options
context:
space:
mode:
Diffstat (limited to 'cgi.c')
-rw-r--r--cgi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cgi.c b/cgi.c
index b8e009a4..6d25fbfe 100644
--- a/cgi.c
+++ b/cgi.c
@@ -510,7 +510,9 @@ resp_search(struct res *r, size_t sz, void *arg)
const struct req *req;
req = (const struct req *)arg;
- assert(req->q.manroot >= 0);
+
+ if (sz > 0)
+ assert(req->q.manroot >= 0);
if (1 == sz) {
/*