X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/12f47a5652f90a1d86d7f6245d2d7f4dfae9f04e..42da258b9efb4652b138c2effa6c0f4a5782b889:/cgi.c diff --git a/cgi.c b/cgi.c index 4cb4fa92..65064ab2 100644 --- a/cgi.c +++ b/cgi.c @@ -1,4 +1,4 @@ -/* $Id: cgi.c,v 1.99 2014/10/07 18:20:06 schwarze Exp $ */ +/* $Id: cgi.c,v 1.102 2014/11/26 17:55:27 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 @@ -469,8 +463,7 @@ resp_searchform(const struct req *req) puts("