summaryrefslogtreecommitdiff
path: root/bk_html.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2005-03-10 10:20:36 +0000
committerSimon Tatham <anakin@pobox.com>2005-03-10 10:20:36 +0000
commitcf872c750ac9c937cb77d4bb31abf70d1c4afac7 (patch)
treec296b2d1a4edbbac7fa1c6e30716f6255975de18 /bk_html.c
parentf3bcc430298edf9a72becfb14ee99e924e4ff2c0 (diff)
downloadhalibut-cf872c750ac9c937cb77d4bb31abf70d1c4afac7.zip
halibut-cf872c750ac9c937cb77d4bb31abf70d1c4afac7.tar.gz
halibut-cf872c750ac9c937cb77d4bb31abf70d1c4afac7.tar.bz2
halibut-cf872c750ac9c937cb77d4bb31abf70d1c4afac7.tar.xz
Explicitly constify a bunch of static data declarations which were
conceptually const but not declared as such. Halibut is now back to the practically-speaking-pointless but rather satisfying status of having no global writable data whatsoever :-) [originally from svn r5476] [this svn revision also touched charset,filter,timber]
Diffstat (limited to 'bk_html.c')
-rw-r--r--bk_html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bk_html.c b/bk_html.c
index 4da897f..3cd8eca 100644
--- a/bk_html.c
+++ b/bk_html.c
@@ -2101,7 +2101,7 @@ static char *html_sanitise_fragment(htmlfilelist *files, htmlfile *file,
/* If there's nothing left, make something valid up */
if (!*text) {
- static const char *anonfrag = "anon";
+ static const char *const anonfrag = "anon";
text = sresize(text, lenof(anonfrag), char);
strcpy(text, anonfrag);
}