diff options
Diffstat (limited to 'cgi.c')
-rw-r--r-- | cgi.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) { /* |