X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/agedu/blobdiff_plain/268e65c204e5dbcb0f185bdf0f5bb01d8f3f7aee..4fc86a0679d5d70b1a3944b26294c376b5f63abe:/html.c diff --git a/html.c b/html.c index 7f82f39..8233993 100644 --- a/html.c +++ b/html.c @@ -869,7 +869,10 @@ char *html_query(const void *t, unsigned long index, path = snewn(1+trie_maxpathlen(t), char); ctx->path2 = path2 = snewn(1+trie_maxpathlen(t), char); - ctx->oururi = format_string(cfg->uriformat, index, t); + if (cfg->uriformat) + ctx->oururi = format_string(cfg->uriformat, index, t); + else + ctx->oururi = NULL; /* * HEAD section.