aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2005-01-06 00:50:23 -0500
committerThomas E. Dickey <dickey@invisible-island.net>2005-01-06 00:50:23 -0500
commitaaa10562f4a02971f712964cb2fd1014d2a75d33 (patch)
tree5498ef7533cde06f4b5091404bf291178e7557ed /src
parent1fc1d8afcb5b9947e2b9665514dbfd1e86c0bf3f (diff)
downloadlynx-snapshots-aaa10562f4a02971f712964cb2fd1014d2a75d33.tar.gz
snapshot of project "lynx", label v2-8-6dev_11
Diffstat (limited to 'src')
-rw-r--r--src/GridText.c5
-rw-r--r--src/HTInit.c2
2 files changed, 3 insertions, 4 deletions
diff --git a/src/GridText.c b/src/GridText.c
index acf4503e..d79f5b17 100644
--- a/src/GridText.c
+++ b/src/GridText.c
@@ -8860,10 +8860,7 @@ static void HText_AddHiddenLink(HText *text, TextAnchor *textanchor)
if ((dest = HTAnchor_followLink(textanchor->anchor)) &&
(text->hiddenlinkflag != HIDDENLINKS_IGNORE ||
HTList_isEmpty(text->hidden_links))) {
- char *cp_freeme = NULL;
-
- HTList_appendObject(text->hidden_links, cp_freeme = HTAnchor_address(dest));
- FREE(cp_freeme);
+ HTList_appendObject(text->hidden_links, HTAnchor_address(dest));
}
return;
diff --git a/src/HTInit.c b/src/HTInit.c
index db684ad1..2b8770e1 100644
--- a/src/HTInit.c
+++ b/src/HTInit.c
@@ -116,6 +116,7 @@ void HTFormatInit(void)
SET_INTERNL("application/html", "text/plain", HTMLToPlain, 0.5);
SET_INTERNL("application/html", "www/present", HTMLPresent, 2.0);
SET_INTERNL("application/xhtml+xml", "www/present", HTMLPresent, 2.0);
+ SET_INTERNL("application/xml", "www/present", HTMLPresent, 2.0);
SET_INTERNL("application/html", "www/source", HTPlainPresent, 1.0);
SET_INTERNL("application/x-wais-source", "www/source", HTPlainPresent, 1.0);
SET_INTERNL("application/x-wais-source", "www/present", HTWSRCConvert, 2.0);
@@ -148,6 +149,7 @@ void HTFormatInit(void)
SET_INTERNL("text/html", "text/x-c", HTMLToC, 0.5);
SET_INTERNL("text/html", "text/plain", HTMLToPlain, 0.5);
SET_INTERNL("text/html", "www/present", HTMLPresent, 1.0);
+ SET_INTERNL("text/xml", "www/present", HTMLPresent, 2.0);
/*
* These should override the default types as necessary.