* mdocml: Fix assertion found when plugging legacy man.cgi query string
@ 2011-12-16 20:05 kristaps
0 siblings, 0 replies; only message in thread
From: kristaps @ 2011-12-16 20:05 UTC (permalink / raw)
To: source
Log Message:
-----------
Fix assertion found when plugging legacy man.cgi query string into my
man.cgi.
Modified Files:
--------------
mdocml:
cgi.c
Revision Data
-------------
Index: cgi.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/cgi.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -Lcgi.c -Lcgi.c -u -p -r1.36 -r1.37
--- cgi.c
+++ cgi.c
@@ -510,7 +510,9 @@ resp_search(struct res *r, size_t sz, vo
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) {
/*
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-12-16 20:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-16 20:05 mdocml: Fix assertion found when plugging legacy man.cgi query string kristaps
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).