=================================================================== RCS file: /cvs/mandoc/cgi.c,v retrieving revision 1.96 retrieving revision 1.103 diff -u -p -r1.96 -r1.103 --- mandoc/cgi.c 2014/08/26 11:21:40 1.96 +++ mandoc/cgi.c 2015/01/15 04:26:39 1.103 @@ -1,4 +1,4 @@ -/* $Id: cgi.c,v 1.96 2014/08/26 11:21:40 schwarze Exp $ */ +/* $Id: cgi.c,v 1.103 2015/01/15 04:26:39 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons * Copyright (c) 2014 Ingo Schwarze @@ -163,8 +163,7 @@ http_printquery(const struct req *req, const char *sep printf("%sarch=", sep); http_print(req->q.arch); } - if (NULL != req->q.manpath && - strcmp(req->q.manpath, req->p[0])) { + if (strcmp(req->q.manpath, req->p[0])) { printf("%smanpath=", sep); http_print(req->q.manpath); } @@ -298,11 +297,6 @@ next: if (*qs != '\0') qs++; } - - /* Fall back to the default manpath. */ - - if (req->q.manpath == NULL) - req->q.manpath = mandoc_strdup(req->p[0]); } static void @@ -376,13 +370,10 @@ resp_begin_html(int code, const char *msg) resp_begin_http(code, msg); - printf("\n" + printf("\n" "\n" "\n" - "\n" + "\n" "\n" ""); for (i = 0; i < (int)req->psz; i++) { printf("