~mdw
/
sgt
/
agedu
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
268e65c
)
Fix assertion failure in standalone --html mode, which I must have
author
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 25 Jul 2011 18:18:52 +0000
(18:18 +0000)
committer
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 25 Jul 2011 18:18:52 +0000
(18:18 +0000)
introduced when I revamped the HTML relative-URI handling.
git-svn-id: svn://svn.tartarus.org/sgt/agedu@9248
cda61777
-01e9-0310-a592-
d414129be87e
html.c
patch
|
blob
|
blame
|
history
diff --git
a/html.c
b/html.c
index
7f82f39
..
8233993
100644
(file)
--- 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.